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

When is the “void” keyword used in a function?

821


Explain how do you declare an array that will hold more than 64kb of data?

881


Compare array data type to pointer data type

592


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

768


What is the advantage of using #define to declare a constant?

609






Explain c preprocessor?

672


Explain modulus operator. What are the restrictions of a modulus operator?

592


Explain how can you be sure that a program follows the ansi c standard?

852


Are comments included during the compilation stage and placed in the EXE file as well?

660


Can we assign string to char pointer?

575


Why is c called c?

615


What is indirection in c?

612


What are the complete rules for header file searching?

657


Explain what is the heap?

612


What is difference between array and pointer in c?

530