what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}
Answer Posted / tasneemuddin
The result of this program will be:
you have to enter two int numbers
output : 2 <the last number entered>
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
What are the different types of objects used in c?
What is the purpose of main() function?
What do you understand by normalization of pointers?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
How to set file pointer to beginning c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is the difference between arrays and pointers?
Is there a way to jump out of a function or functions?
Write a program to find factorial of a number using recursive function.
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What are the scope of static variables?
Write a program to print “hello world” without using semicolon?
Differentiate between #include<...> and #include '...'
What is the default value of local and global variables in c?
Can we compile a program without main() function?