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 use of a semicolon (;) at the end of every program statement?

728


What is a #include preprocessor?

612


What is a program flowchart and how does it help in writing a program?

655


Explain how can I right-justify a string?

618


write a program to rearrange the array such way that all even elements should come first and next come odd

1758






What is the use of ?: Operator?

660


can anyone please tell about the nested interrupts?

1674


What is this infamous null pointer, anyway?

607


How do you declare a variable that will hold string values?

665


What is a memory leak? How to avoid it?

569


What is data structure in c and its types?

590


Why do we need a structure?

583


What is the difference between text and binary modes?

639


What is sizeof int?

629


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14955