how to make program without <> in library.
Answer / gandhi priyank
hello
and your answer is a very easy you can write c progaram
then you can write libary #include<stdio.h> insted of
#include"stdio.h"
Is This Answer Correct ? | 16 Yes | 3 No |
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
write a string copy function routine?
what will be the result of the following program ? char *gxxx() { static char xxx[1024]; return xxx; } main() { char *g="string"; strcpy(gxxx(),g); g = gxxx(); strcpy(g,"oldstring"); printf("The string is : %s",gxxx()); } a) The string is : string b) The string is :Oldstring c) Run time error/Core dump d) Syntax error during compilation e) None of these
how to use virual function in real time example
Can we assign string to char pointer?
Why isnt any of this standardized in c?
WHAT IS HEADER?
What is wrong in this statement? scanf(“%d”,whatnumber);
simple program of graphics and their output display
C program code int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15
When should structures be passed by values or by references?
How does normalization of huge pointer works?