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 / sudarshan

4 3 -1 this will be the output of this program

Is This Answer Correct ?    0 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c value paradox explain?

579


what is bit rate & baud rate? plz give wave forms

1523


What does *p++ do?

590


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2305


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1622






Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1867


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3299


What does return 1 means in c?

590


How can I remove the leading spaces from a string?

638


What is a constant and types of constants in c?

606


What are the differences between new and malloc in C?

612


What is difference between structure and union in c programming?

575


Does c have an equivalent to pascals with statement?

576


What is a ternary operator in c?

656


Is c programming hard?

578