main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
Answer Posted / s mahesh babu
56 and 93....
why bcz..... x=y++ + x++; in this expression xy values are post increment mean .. value not change so x=20+35-->55;
in next expression y=++y + ++x;...... so y & x pre increment ... here y=37+56.... 93
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Explain two-dimensional array.
What is the use of sizeof?
Is c dynamically typed?
How many bytes is a struct in c?
Explain what are the different data types in c?
What are header files why are they important?
Which is the memory area not included in C program? give the reason
What does c in a circle mean?
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.
What does 2n 4c mean?
Write a program to print ASCII code for a given digit.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is difference between && and & in c?
What is masking?