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 |
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What are pointers in C?
how write a addtion of two single dimensional array using of pointer in c language?
What is the difference between array and pointer in c?
What is nested structure in c?
how to execute with out main in cprogram
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
write a program to copy a string without using a string?
Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.
how to print 212 as Twohundreds twelve plz provide me ans soon
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?