689 views
0 votes
0 votes
#include int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; }

Please log in or register to answer this question.

Related questions

7.5k
views
1 answers
1 votes
Piyush mishra asked Dec 7, 2018
7,468 views
#include<stdio.h> int main() { int a[]={1,2,3,4,5,6}; int *ptr=(int *)(&a+1); printf("%d",*(ptr-1)); return 0; }this program print => 6 but if we ... (&a+2); printf("%d",*(ptr-2)); return 0; }justify why this program not print => 6
1.9k
views
3 answers
3 votes
Rudra Pratap asked Jul 20, 2018
1,943 views
#include <stdio.h> int main() { static int i=5; if(--i) { main(); printf("%d ",i); } }
1.3k
views
1 answers
1 votes
Amrata Ramchandani 1 asked Oct 24, 2017
1,261 views
What will be the output of following programs and why ?1)void foo(float *);int main(){int i = 10, *p = &i;foo((float*)&i);return 0;}void foo(float *p){printf(" ... ;}Output:4 4 4I am not getting why the 3rd one is 4,because 5>>2 will give 1
1.0k
views
0 answers
0 votes
ayush201 asked Dec 30, 2018
1,004 views
A weight-balanced tree is a binary tree in which for each node. The number of nodes in the left sub tree is at least half and at most twice the number of nodes ... is best described by which of the following?a) b) c) d) Binary Trees