WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW
IT COME ..
#include<stdio.h>
#include<conio.h>
void main()
{
int k=20;
printf("%d%d%d%d",k,k++,++k,k);
getch();
}
Answer Posted / vishwanath pillay
The answer will be :-
20, 21, 21, 21
At the start the value is initialized to 20.
since the line:-
printf("%d%d%d%d",k,k++,++k,k);
Answer:-- 20, 21, 21, 21
| Is This Answer Correct ? | 0 Yes | 11 No |
Post New Answer View All Answers
What does printf does?
Here is a neat trick for checking whether two strings are equal
What do you mean by Recursion Function?
Which header file is used for clrscr?
Can a void pointer point to a function?
Can you write the function prototype, definition and mention the other requirements.
Why can’t we compare structures?
What are identifiers c?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What does it mean when the linker says that _end is undefined?
ATM machine and railway reservation class/object diagram
What is the difference between far and near in c?
What is pointer in c?
Explain bitwise shift operators?
Explain what are multidimensional arrays?