Recent questions tagged programming-in-c

1 votes
1 answer
601
#include <stdio.h>main (){unsigned x = -10;int X = 20;if (X x) printf ("Hello");else{ printf ("%d",x); printf ("Jello"); }}
0 votes
0 answers
602
#include<stdio.h>void main(){int p=-8;int i= (p++,++p);printf("%d\n",i);}
0 votes
0 answers
603
2 votes
3 answers
606
What is the output of the following $\text{C}$ program?#include<stdio.h int main(void){ char s1[] = “Hello”; char s2[] = “World!”; s1 = s2; printf(“%s”,s1); }...
0 votes
2 answers
609
void main() { int i=6; for( i; i; i ) { printf(“%d”,i); } }
0 votes
0 answers
610
$a=a+100$ in function foo, does it increases the value of a by 100 or just increments the address.
0 votes
1 answer
611
#include<stdio.h int main() { int M = 2; int arr[M][M] = {0}; // Trying to initialize all values as 0 int i, j; for (i = 0; i < M; i++) { for (j = 0; j < M; j++) ...
0 votes
0 answers
612
0 votes
0 answers
618
Leaf Nodes =[ Internal nodes with degree 2 ] + 1It is valid if we consider Tree as undirected graph ?Or is it valid only for Tree when considered as directed graph
0 votes
0 answers
619
let R be the class of recursive program and l be the class of iterative program now consider below statement S S : every program in R uses strictly more space compare to ...
0 votes
0 answers
620
#include <stdio.h>int cou=0;int cal(int a,int b){ int c; cou++; if(b==3) return(a*a*a); else{ c=cal(a,b/3); return(c*c*c); }}int ma...
0 votes
1 answer
621
The minimum size of stack required to evaluate given post fix expression is _____________postfix :- 2 5 x 6 + 4 2 x - MY ANSWER IS 8..CAN ANYONE TELL ME WHERE I AM WRONG�...
4 votes
1 answer
622
0 votes
0 answers
627
Find out the output of the given program?include<stdio.h int main() { char s[] = "Hello"; char *ptr = s ; *ptr++; // please explain this line ptr++; ...
0 votes
0 answers
628
#include <stdio.h>int main(){ int i = 3; while (i ) { int i = 100; i ; printf("%d ", i); } return 0;}
0 votes
2 answers
630
The program fragment: int i= 263; putchar (i)(a) prints 263 (b) prints the ASCII equivalent of 263...