will the program compile? int i; scanf(ā€œ%dā€,i); printf(ā€œ%dā€,i);

Answer Posted / vignesh1988i

surely it will compile and run , no problem will be in
it.... but the problem lies in ur scanf statement , there
what ever u have typed as an input number , that number
wont be stored in 'i' since you have left ur '&'(reference
operator) , so ur compiler dosen't know where to store ur
input value....... so it will print some garbage value in
the printf().........


thank u

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by scope of a variable in c?

532


How can you avoid including a header more than once?

553


Tell me with an example the self-referential structure?

552


What are terms in math?

574


What is an auto variable in c?

736






Explain about the constants which help in debugging?

836


What is the usage of the pointer in c?

592


What happens if you free a pointer twice?

594


What does sizeof return c?

587


What is null pointer constant?

581


How do you print only part of a string?

598


Is it better to bitshift a value than to multiply by 2?

642


What is the process to generate random numbers in c programming language?

596


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

619


Write a factorial program using C.

628