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
How can I convert a number to a string?
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
With the help of using classes, write a program to add two numbers.
difference between c and c++?
What is the use of sizeof?
How the processor registers can be used in C ?
What is the method to save data in stack data structure type?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Why is C language being considered a middle level language?
develop algorithms to add polynomials (i) in one variable
What is return in c programming?
Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)