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 |
Which node is more powerful and can handle local information processing or graphics processing?
write a programe to find the factorial of given number using recursion
What is spaghetti programming?
6)swap(int x,y) { int temp; temp=x; x=y; y=temp; } main() { int x=2;y=3; swap(x,y); } after calling swap ,what are yhe values x&y?
program to print upper & lower triangle of a matrix
Is it acceptable to declare/define a variable in a c header?
Explain the use of keyword 'register' with respect to variables.
Why is void main used?
How do I use strcmp?
Program to write some contents into a file using file operations with proper error messages.
How to find a missed value, if you want to store 100 values in a 99 sized array?
How can I avoid the abort, retry, fail messages?