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

but how answer came ? ?

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

646


how to count no of words,characters,lines in a paragraph.

3907


how do you execute a c program in unix.

636


How many levels of pointers have?

595


What is typedef example?

618






What is uint8 in c?

642


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1620


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2201


Explain bit masking in c?

639


a program that can input number of records and can view it again the record

1486


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1138


What is the difference between far and near ?

687


What is the difference between malloc calloc and realloc in c?

649


What is pass by reference in functions?

325


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

668