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 type modifiers in c?
int i=10; printf("%d %d %d", i, i=20, i);
What is the size of array float a(10)?
Write a code to generate a series where the next element is the sum of last k terms.
What is the use of clrscr?
Is null always equal to 0(zero)?
What is the difference between a free-standing and a hosted environment?
Define recursion in c.
What is volatile c?
Are comments included during the compilation stage and placed in the EXE file as well?
How can you access memory located at a certain address?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is the need of structure in c?
Write the control statements in C language
Is there anything like an ifdef for typedefs?