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 / ashish

20212120 is the write answer because there is no space between
specified data type %d

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between a free-standing and a hosted environment?

635


Explain how can I convert a string to a number?

643


Difference between linking and loading?

695


What is a c token and types of c tokens?

591


What is the meaning of ?

622






What is c basic?

601


What is the scope of static variables in c language?

630


Is there a way to switch on strings?

620


What are header files? What are their uses?

640


What does *p++ do?

586


What is struct node in c?

621


Why main is not a keyword in c?

651


write a c program in such a way that if we enter the today date the output should be next day's date.

1682


What is the difference between malloc() and calloc()?

617


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2699