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 are the different properties of variable number of arguments?
Why & is used in scanf in c?
Is file a keyword in c?
What is static memory allocation?
What oops means?
Why header files are used?
Write a function that will take in a phone number and output all possible alphabetical combinations
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is a header file?
If null and 0 are equivalent as null pointer constants, which should I use?
What is the heap?
Explain what are the standard predefined macros?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is modeling?
What is pointer to pointer in c language?