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 is the difference between array and pointer?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
write a program to generate address labels using structures?
What does == mean in texting?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }
Explain the use of #pragma exit?
Explain how can you avoid including a header more than once?
Explain low-order bytes.
main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?
How to swap 3 numbers without using 4th variable?
Write program to remove duplicate in an array?
I need previous papers of CSC.......plz help out by posting them.......