main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is:
a) Variable 'str' is not initialised
b) Format control for a string is not %s
c) Parameter to scanf is passed by value. It should be an address
d) none
No Answer is Posted For this Question
Be the First to Post Answer
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is the use of sizeof () in c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Why c is called free form language?
Is that possible to store 32768 in an int data type variable?
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
Explain why can’t constant values be used to define an array’s initial size?
What is a memory leak? How to avoid it?
where do we use volatile keyword?
Explain what is operator promotion?
How do you print only part of a string?
Write a program to print all permutations of a given string.