Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
printf("enter the string :");
for(int i=0;1;i++)
{
scanf("%c",&a[i]);
if(a[i]=='\n')
a[i]='\0'
break;
}
for(i=0;a[i]!='\0;i++)
printf("%c",a[i]);
getch();
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are control structures? What are the different types?
What is the use of define in c?
Write a program in c to replace any vowel in a string with z?
What are the preprocessor categories?
What is string function c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is the difference between printf and scanf in c?
What is bin sh c?
When should I declare a function?
How do you convert strings to numbers in C?
Why is c platform dependent?
What is hashing in c?
What are the application of void data type in c?
What is file in c preprocessor?
Differentiate between functions getch() and getche().