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
What do you mean by scope of a variable in c?
How can you avoid including a header more than once?
Tell me with an example the self-referential structure?
What are terms in math?
What is an auto variable in c?
Explain about the constants which help in debugging?
What is the usage of the pointer in c?
What happens if you free a pointer twice?
What does sizeof return c?
What is null pointer constant?
How do you print only part of a string?
Is it better to bitshift a value than to multiply by 2?
What is the process to generate random numbers in c programming language?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Write a factorial program using C.