will the program compile? int i; scanf(“%d”,i); printf(“%d”,i);
Answers were Sorted based on User's Feedback
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 |
Answer / girish
it gives the garbage value of that perticular element.
| Is This Answer Correct ? | 4 Yes | 1 No |
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
program to find the second largest word in a paragraph amongst all words that repeat more thn twice
Explain what header files do I need in order to define the standard library functions I use?
c program to subtract between two numbers without using '-' sign and subtract function.
Is c compiled or interpreted?
why TCS selected more student in the software field from all institution.
what is an inline fuction??
What are integer variable, floating-point variable and character variable?
When should the register modifier be used? Does it really help?
write a program to display the numbers having digit 9 in the given range from 1 to 100
How can I ensure that integer arithmetic doesnt overflow?
read a number & print all its devisors using c-program?