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 |
what are you see during placement time in the student.
0 Answers Goldman Sachs, TCS, Tech Solutions,
What is the difference between struct and typedef struct in c?
If errno contains a nonzero number, is there an error?
What is volatile in c language?
What is the difference between array and linked list in c?
Why clrscr is used after variable declaration?
Which weighs more, a gram of feathers or a gram of gold?
Do you know what are the properties of union in c?
What are volatile variables in c?
What is time complexity c?
Write a function to find the area of a triangle whose length of three sides is given
c programming of binary addition of two binary numbers