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

its stack operation . .

top will get printed first . .

answer will b 22 21 21 20

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between #include<...> and #include '...'

704


How do we declare variables in c?

670


pierrot's divisor program using c or c++ code

1838


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

722


Is malloc memset faster than calloc?

711






How pointer is different from array?

683


What are lookup tables in c?

648


What is the difference between variable declaration and variable definition in c?

652


How many parameters should a function have?

757


Write a program to print fibonacci series using recursion?

706


What is the use of function in c?

808


Tell me is null always defined as 0(zero)?

753


What are the types of unary operators?

768


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

830


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

700