what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
}
Answer Posted / yogesh bansal
yes, correct answer is 3 3 1
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
With the help of using classes, write a program to add two numbers.
What is use of null pointer in c?
How reliable are floating-point comparisons?
How do we open a binary file in Read/Write mode in C?
Is it better to use a macro or a function?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Distinguish between actual and formal arguments.
What is void main ()?
How does struct work in c?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What is structure and union in c?
Write a program to swap two numbers without using a temporary variable?
What are two dimensional arrays alternatively called as?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Write a C program in Fibonacci series.