Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

C Code Interview Questions
Questions Answers Views Company eMail

void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }

1 6089

int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }

1 9363

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }

IBM, TCS, UGC NET, Wipro,

29 53642

main() { int i=5; printf("%d",++i++); }

1 4688

main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }

1 6056

int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }

1 9356

main() { int i=5; printf(“%d”,i=++i ==6); }

1 12281

main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }

2 18664

void ( * abc( int, void ( *def) () ) ) ();

1 7221

main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }

1 6224

main() { char str1[] = {‘s’,’o’,’m’,’e’}; char str2[] = {‘s’,’o’,’m’,’e’,’\0’}; while (strcmp(str1,str2)) printf(“Strings are not equal\n”); }

1 6347

main() { int i = 3; for (;i++=0;) printf(“%d”,i); }

CSC,

1 13320

void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(“%d”,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(“%d”,*cptr); }

1 6783

void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }

2 14274

main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }

Adobe, CSC,

2 26055


Post New C Code Questions

Un-Answered Questions { C Code }

Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

4477