Most answered questions in Programming in C

2 votes
4 answers
61
7 votes
4 answers
62
3 votes
4 answers
64
11 votes
4 answers
65
Which of the following statements produce a compile time error in C?int a = sizeof 3;*(1000) = 5;int a = 5; ((int)a)++;int b = 5, *a = &b; ((int*)a)++;1, 2 and 32 only2, ...
5 votes
4 answers
66
6 votes
4 answers
67
a 4-ary tree has either 4 or 0 children,What is the total number of nodes when there are 20 leaf node?
6 votes
4 answers
68
#include‬<stdio.h int main() { char *s[] = { "knowledge","is","power"}; char p; p = s; printf("%s ", ++*p); printf("%s ", *p++); printf("%s ", ++*p); return 0; }
4 votes
4 answers
70
What is the output of this C code?#include<stdio.h void main() { int k=5; int *p=&k; int m=&p; printf("%d %d %d",k,*p, m); }5 5 5 5 5 junk5 junk junkcompile time error
2 votes
4 answers
71
The following three 'C' language statements is equivalent to which single statement?y=y+1; z=x+y; x=x+1z = x + y + 2;z = (x++) + (++y);z = (x++) + (y++);z = (x++) + (++y)...
10 votes
4 answers
72
The output of the following program ismain() { static int x[] = {1,2,3,4,5,6,7,8} int i; for (i=2; i<6; ++i) x[x[i]]=x[i]; for (i=0; i<8; ++i) printf("%d", x[i]); }1 2 3 ...
5 votes
4 answers
73
Which of the following programming language(s) provides garbage collection automaticallyLispC++FortanC
0 votes
4 answers
74
0 votes
4 answers
77
int main(){ int n=1,sum =0; while(n<=10){ sum += n++*n++; } printf("Sum = %d\n",sum); return 0 }ans is 165 . i got 190.please explain??
4 votes
4 answers
78
4 votes
4 answers
80
Which of the following has the compilation error in C?int n = 17;char c = 99;float f = (float)99.32;#include <stdio.h>