write C code to reverse a string such that if i/p is "abc
defg hij klmno pqrs tuv wxyz"
and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
Answers were Sorted based on User's Feedback
Answer / naresh
man()
{
char ch[33];
printf("enter the string");
for(int i=0;i<33;i++)
scanf("%c",&ch[i]);
int k=0;
for(i=0;ch[i]!='/o';i++)
{
if(ch[i]==" ")
{ int n=i;
while(i>=k)
{
printf("%c",ch[i]);
i--;
}
k=n;
}
}
}
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / bipin chandra sai.s
hay just use concatenation of strings method
{
int temp=int a;
int a=int b;
int b=int temp;
}
Is This Answer Correct ? | 2 Yes | 6 No |
Compare and contrast compilers from interpreters.
what is the code for getting the output as * ** ***
Difference between Shallow copy and Deep copy?
What is dynamic memory allocation?
what is compiler
why Language C is plateform dependent
void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is data types?
advantages of pointers?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
suppose there are five integers write a program to find larger among them without using if- else