Most answered questions in Programming in C

0 votes
4 answers
81
int main() { int a; char *x; x = (char *) &a; a = 512; x[0] = 1; x = 2; printf("%d\n",a); return 0; }output?A. M/C dependentB. 513C. 258D. compiler error
0 votes
4 answers
82
Find output #include<stdio.h void main() { int i=0; for(; i++ ; printf("%d",i)); printf("%d",i); }Plz explain ?
1 votes
4 answers
83
0 votes
4 answers
86
int foo(unsigned int n) { int c,x=0; while(n!=0) { if(n&01) x++; n>>=1; } return c; }
1 votes
4 answers
87
int i = 1; int main() { int a[]= { 0,1, 2} ; f(a[i], i); printf("%d", a[i]); } void f(int x, int y) { y++; x=5*i; }In above function f() uses " call by name" technique, w...
30 votes
4 answers
90
59 votes
4 answers
93
Consider the following function.double f(double x){ if( abs(x*x - 3) < 0.01) return x; else return f(x/2 + 1.5/x); }Give a value $q$ (to $2$ decimals) such that $f(q)$ wi...