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
write a c program for swapping two strings using pointer
What is a static variable in c?
How can type-insensitive macros be created?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Explain what are compound statements?
What is hungarian notation? Is it worthwhile?
Differentiate between #include<...> and #include '...'
Why isn't any of this standardized in c? Any real program has to do some of these things.
How can I find the modification date and time of a file?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is sizeof int?
program to convert a integer to string in c language'
explain how do you use macro?
How is pointer initialized in c?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above