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 is exit() function?
What are the parts of c program?
Explain how can type-insensitive macros be created?
What is a dynamic array in c?
What is selection sort in c?
What is the most efficient way to count the number of bits which are set in an integer?
How does placing some code lines between the comment symbol help in debugging the code?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
In c programming language, how many parameters can be passed to a function ?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What's the total generic pointer type?
What is time complexity c?
Why is extern used in c?
Explain how can you determine the size of an allocated portion of memory?
What is typeof in c?