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 / pratik.nikam3112

answer is

22 21 21 20

Is This Answer Correct ?    38 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between new and malloc(), delete and free() ?

675


Explain spaghetti programming?

684


How are variables declared in c?

599


What are the 5 organizational structures?

569


What is the use of ?

626






Should I learn data structures in c or python?

583


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

695


Write a program to print factorial of given number using recursion?

604


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15048


What do you mean by c?

589


What happens if header file is included twice?

653


What is difference between function overloading and operator overloading?

658


Which are low level languages?

636


what is the format specifier for printing a pointer value?

613


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2222