522 views

1 Answer

Position:
Show:

Related questions

4 4 votes
1 answers 1 answer
2.0k
2.0k views
Akriti sood asked Dec 28, 2016
2,044 views
main () { if( i) { main (); printf("%d", i); } } 5 4 3 2 1 1 2 3 4 5 0 0 0 0 0 Compiler error
2 2 votes
1 1 answer
1.0k
1.0k views
Shivi rao asked Oct 11, 2017
1,010 views
What is the output of the following program?int main ( ){char *str = “Gate2018”printf (“%d”, output (str)) ;return 0;}int output(char *P1){char *P2 = P1 ;while (*++P1) ;r...
0 0 votes
0 0 answers
446
446 views
Anirudh Kaushal asked Apr 6, 2022
446 views
#include<stdio.h struct marks { int p:3; int c:3; int m:2; }; void main() { struct marks s = {2, -6, 5}; printf("%d %d %d", s.p, s.c, s.m); }What does p:3 means here ?
0 0 votes
1 answers 1 answer
716
716 views
Parshu gate asked Nov 19, 2017
716 views
#include<stdio.h>int main(){ int a=2;if(a==2){ a=~a+2<<1; printf("%d",a);}}