Answer Posted / parmjeet kumar
#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
printf("enter the string:");
scanf("%s",&a);
printf("%s",a);
getch();
}
| Is This Answer Correct ? | 0 Yes | 10 No |
Post New Answer View All Answers
What is array of pointers to string?
how to create duplicate link list using C???
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is self-referential structure in c programming?
Explain the use of function toupper() with and example code?
List the different types of c tokens?
What is %d used for?
Can a function argument have default value?
What is pointer & why it is used?
Are pointers integer?
What are the two forms of #include directive?
What is union and structure in c?
What is the 'named constructor idiom'?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc