Recent questions tagged programming-in-c

70 votes
13 answers
1385
25 votes
7 answers
1388
Consider the following C program.#include<stdio.h int main () { int m=10; int n, n1; n=++m; n1=m++; n ; n1; n-=n1; printf(“%d”, n); return 0; }The output of the prog...
30 votes
11 answers
1389
26 votes
3 answers
1390
Match the following:$$\begin{array}{|ll|ll|}\hline P. & \text{static char var ;} & \text{i.} & \text{Sequence of memory locations to store addresses} \\\hline Q. & \text...
0 votes
1 answer
1393
0 votes
0 answers
1394
1 votes
1 answer
1397
Determine the output-#include <stdio.h int main(void) { char *p="gateoverflow"; *(p+5)='z'; printf("%s",p); return 0; }
0 votes
1 answer
1398
0 votes
1 answer
1399
0 votes
1 answer
1401
What is the error in the following code . Please do correct them#include <stdio.h int main () { char *x[5] = {"raju","ramu","tinu","ben","ali"}; printf("%s\n",(x [0]) ); ...
1 votes
2 answers
1402
1 votes
1 answer
1404
In c language a«2 is equivalent toa) multiply by 2b) divide by 2c) addition by 2d) none my answer is option a but given answer is d..pls tell me wht is correct ansr
3 votes
1 answer
1406
#include <stdio.h int main(void) { for(i=1;i<=n;i*=2) { for(j=0;j<=i;j++) { for(k=0;k<=n;k++) { ..... O(1)....; } } } return 0; }What is the time complexity of given code...
5 votes
6 answers
1408
1 votes
1 answer
1409