what is the output of
printf("%d",(scanf("%d",10));

Answer Posted / ravinder singh rawat

scanf returns nos. of arguments taken by scanf hence it
will ask user to input and if integer is fed as I/P then
printf gives 1 as o/p

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15515


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3299


How can I write a function that takes a format string and a variable number of arguments?

609


What is scope rule in c?

609


What are the 3 types of structures?

575






Define the scope of static variables.

608


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.

1858


What is the purpose of macro in C language?

668


why wipro wase

1837


What is meant by gets in c?

613


Which is best linux os?

570


What is the explanation for cyclic nature of data types in c?

652


Whats s or c mean?

597


When should the const modifier be used?

661


Can we use visual studio for c?

556