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 |
find largest element in array w/o using sorting techniques.
64/square(4)
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
can we declare a function in side the structure?
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
What is difference between structure and union in c?
Which header file is used for clrscr?
Why the below program throughs error during compilation? #include<stdio.h> #include<conio.h> enum { ZERO, ONE, TWO, }; main() { printf("%d",&TWO); getch(); }
Describe wild pointers in c?
Do pointers need to be initialized?
How to reverse a linked list
1 Answers Aricent, Fidelity, IBM, TCS,
What is pass by value in c?