0 answers
3
queue->array = (int*) malloc(queue->capacity *sizeof(int));What is queue->capacity * doing here?
3 answers
4
What is the output of the program? int main() { union a { int i; char ch ; }; union a u; u.ch[0] = 3; u.ch = 2; printf("%d, %d, %d", u.ch[0], u.ch , u.i); return 0; }
1 answer
9
what is the reason…..?for error..
0 answers
12
int main(){ int a=2,b=2,c=2; printf("%d",a==b==c); return 0;}what is the output??? and what will be done during executioncan anyone explain this……...
0 answers
13
Given i= 0, j = 1, k = – 1x = 0.5, y = 0.0What is the output of given ‘C’ expression ?x * 3 & & 3 || j | kexplanation please….
0 answers
15
is *ptr=&a is true in Ci found this incan anyone explain what does *ptr = &i; in the above picture
1 answer
17
#include<stdio.h #define A -B #define B -C #define C 5 int main() { printf("The value of A is %dn", A); return 0; }what is the output?????
1 answer
18
#include<stdio.h>int main(){ int i = 1; printf("%d %d %d\n", i++, i++, i); return 0;} on running i m getting answer : 2 1 3 why answer cant be 1 2 3
0 answers
19
#include int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; }
2 answers
20
#include<stdio.h main() { char c = 'A'+255; printf("%c", c); }
2 answers
21
#include <stdio.h main() { char *p = "Sanfoundry C-Test"; p[0] = 'a'; p = 'b'; printf("%s", p); }
2 answers
22
#include <stdio.h>main(){char *p = 0;*p = 'a';printf("value in pointer p is %c\n", *p);}
0 answers
23
#include<stdio.h>int main(){ int i=0; for(printf(" one\n "); i < 3 && printf(" "); i++){ printf("Hi!\n");}return 0;}