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 / m.kirthika
given z=x-- -y
therefore x--=4-1=3;
and given y=3;
so z =3-3=0;
but x doesn't change its value.
so the correct answer is 430
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
What is #error and use of it?
Why do we need functions in c?
Explain the difference between strcpy() and memcpy() function?
What is indirection?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
How do we declare variables in c?
Describe the steps to insert data into a singly linked list.
Explain how do you print only part of a string?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
how do you programme Carrier Sense Multiple Access
What is the use of a semicolon (;) at the end of every program statement?
Explain Function Pointer?
What is void main () in c?
Write a program to reverse a given number in c language?