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
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Is c language still used?
Explain what’s a signal? Explain what do I use signals for?
What are the different data types in C?
What is the use of extern in c?
What is substring in c?
What is the acronym for ansi?
write a program to find the given number is prime or not
What is the -> in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
shorting algorithmS
write a c program for swapping two strings using pointer
What is the purpose of main() function?
What are the types of data types and explain?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?