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
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What's the best way of making my program efficient?
Implement bit Array in C.
Explain what are multidimensional arrays?
What is operator promotion?
What is the stack in c?
What is function definition in c?
why return type of main is not necessary in linux
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
When is a “switch” statement preferable over an “if” statement?
Explain what does a function declared as pascal do differently?
What is stack in c?
How many bytes are occupied by near, far and huge pointers (dos)?
What is a pointer on a pointer in c programming language?
What is the g value paradox?