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

Post New Answer

More C Interview Questions

write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?

3 Answers   Broadcom, TCS,


1 232 34543 4567654 can anyone tell me how to slove this c question

6 Answers  


what is the code to display color fonts in the output?

1 Answers  


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,






how to find turn around time in operating system?

3 Answers  


what r callback function?

1 Answers  


Subtract Two Number Without Using Subtraction Operator

0 Answers  


Difference between for loop and while loop?

1 Answers  


How can type-insensitive macros be created?

0 Answers  


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

0 Answers   Wipro,


write a addition of two no. program with out using printf,scanf,puts .

4 Answers  


Categories