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
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
Explain what is a program flowchart and explain how does it help in writing a program?
What is the size of a union variable?
Are bit fields portable?
I came across some code that puts a (void) cast before each call to printf. Why?
What is use of null pointer in c?
What is ## preprocessor operator in c?
What are the differences between Structures and Arrays?
Can we access the array using a pointer in c language?
Can you explain the four storage classes in C?
what is the role you expect in software industry?
Can we change the value of constant variable in c?
How can I write a function analogous to scanf?
When should the const modifier be used?
Why is sizeof () an operator and not a function?