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: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is a global variable in c?
What is bubble sort technique in c?
What are variables c?
What do mean by network ?
Why doesnt that code work?
What are the types of data types and explain?
Can I initialize unions?
What is the difference between procedural and functional programming?
What is string function c?
Difference between macros and inline functions? Can a function be forced as inline?
Why does not c have an exponentiation operator?
Explain how can I write functions that take a variable number of arguments?
How main function is called in c?
What is a ternary operator in c?