write function to reverse char array ... without using second
array
Answer Posted / nagesh r. dalave
void main()
{
char strp20];
int len=0,i=0;
printf("\nEnter a string ");
gets(str);
while(str[i]!='\0')
{
i++;
len++;
}
printf("\nReverse of given string:");
while(i>=0)
{
printf("\n %c",str[i]);
i--;
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How was c created?
Is c easy to learn?
Can we change the value of #define in c?
What is keyword in c?
how to make a scientific calculater ?
shorting algorithmS
When should the register modifier be used? Does it really help?
what is recursion in C
what type of questions arrive in interview over c programming?
What is void main ()?
Can we access the array using a pointer in c language?
What does %c do in c?
What are the different types of pointers used in c language?
What is a pointer variable in c language?
What is the modulus operator?