Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Basics

Home > Programs > Basics

312 / 259

Write a program using command line argument to input a string and print the string in reversed order..

Answer:

#include
int main()
{
    char a[50];
    int l,i=0,j,temp;
    printf("Enter A String: ");
    gets(a);
    for(l=0;a[l]!='\0';l++); 
             // to determine length of String
    j=l-1;   // l is the length of String
    for(i=0;i

Asked In :: TCS

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: