#include<stdio.h>
void main() { int s[3]; int *p = (int *)malloc(sizeof(int)*4); printf("\n%d %d",sizeof(s),sizeof(p)); }
I scribble some typical C codes here which I find usually while programming. Blog comprises of C programming questionnaires where you have to identify the output, identical to questions asked in interviews. Any corrections or suggestions are welcomed. Note: Some questions may lack explanation, in such case apt explanations are invited & welcomed!
#include<stdio.h>
void main() { int s[3]; int *p = (int *)malloc(sizeof(int)*4); printf("\n%d %d",sizeof(s),sizeof(p)); }
#include<stdio.h> char*f="char*f=%c%s%c;main(){printf(f,34,f,34,10);}%c"; void main() { printf(f,34,f,34,10); }