Code Snippets Interview Questions
Questions Answers Views Company eMail

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 2018

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

IBM, TCS, Wipro, UGC NET,

29 19552

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

1 1543

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

1 2220

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 2619

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

1 1556

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

2 4074

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

1 2155

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

1 2434

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 1898

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

CSC,

1 4941

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

1 1730

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

2 4857

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

CSC,

2 9252

1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.

3 2096



Un-Answered Questions { Code Snippets }

write a program to input a natural number less than and display it in words.test your program on the sample data and some random data sample input= 29 sample output= Twenty nine sample input=17001 sample output= out of range sample input=119 sample output =one hundred and nineteen sample input=500 sample output=five hundred

1871


Is there any static classes are in java give some examples

655


What is GUID anyway?

283


how to create a Custom Scrollbar

1160


How can export database using php code?

648


How can i know that how many user are visited to my page in php?

775


Who could write how to find a prime number in dynamic array?

839


What is the best way to make wordpress plugin

1710


how to Scroll a DIV content

1221


what full form name of B.K.U.

1368


how exactly is the lngColour used?

905


Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.

1016


hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz

1572


What is the functionality of GetWindowText?

278


Write a program to convert postfix expression to infix expression.

2972