Answer Posted / valli
main()
{
char s[20],s2[20];
printf("enter the string");
scanf(" %[^\n]",s);
for(i=0;s[i];i++)
s[i]=s2[i];
s2[i]='\0';
printf("%s",s2);
}
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Explain the term printf() and scanf() used in c language?
How to implement a packet in C
What is the difference between text and binary modes?
Why is #define used?
What is indirection? How many levels of pointers can you have?
How do I send escape sequences to control a terminal or other device?
what is the difference between 123 and 0123 in c?
Where local variables are stored in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is array in c with example?
Tell me when is a void pointer used?
explain what is fifo?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What language is c written?