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
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Why c is a procedural language?
How many main () function we can have in a project?
Which is best book for data structures in c?
Is c weakly typed?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
can we implement multi-threads in c.
What is the difference between #include and #include 'file' ?
What are the two types of functions in c?
What are c preprocessors?
Why void is used in c?
What is assert and when would I use it?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is void main ()?
What is the purpose of realloc()?