what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}
Answer Posted / sha
The first output would be the number of values scanned by
scanf, i.e. 2. I compiled the code and the second output
seems to be the address the second input given by user.
Input: 4 5
Output: 2 1242772
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Using which language Test cases are added in .ptu file of RTRT unit testing???
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
How would you rename a function in C?
What is return type in c?
Why n++ execute faster than n+1 ?
What is the difference between #include
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is the difference between mpi and openmp?
Can you please explain the difference between malloc() and calloc() function?
Why can’t we compare structures?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
How would you obtain the current time and difference between two times?
Process by which one bit pattern in to another by bit wise operation is?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?