Code Snippets Interview Questions

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); }

2272

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

21402

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

1778

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

2481

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](); }

2887

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

1746

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

4637

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

2304

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

2566

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

2095

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

CSC,

5607

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

1975

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

5432

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

10450

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

2294

Un-Answered Questions { Code Snippets }

create a .dll component operation and use created component in another project. required methods events and properties. connect, add,search,data report

1203

i don't know about working of nested for loop can any one help me

901

how to test the orientation of the layout in android.to note any changes in the ui design when change orientation

1707

write a program in java to solve a system of n-variabled simultaneous equations using the guassian elimination method. let the maximum possible value of n be 100. run the program using hypothetical values for a set of 10- variables simultaneous equations. print out the program, the input equation and the results generated by the program.

2607

Can we run Applet in Web browser with security policy files

1167

What is 301 redirects in php? When are we used 301 redirects in our projects?

1106

How to Bind Nested XML to a Repeater Control with Container.DataItem?

2252

program for check the given number is prime or not in VB.net

1814

Explain MIDlet Life cycle?

1056

Dear sirs, Hi, I would like to inform you that I want to perform a project using MLP neural network to recognize binary images containing three types of geometric shapes such as squares,rectangels and circles. Furthermore,each image includes only one geometric type. The output of network would be: '1' if the network detects square shape. '2' if the network detects rectangle shape. '3' if the network detects circle shape. '4' if none of these shapes detected. Would you please send me a matlab source code for this project? Your prompt reply would be so appreciated. regards,

935

Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.

2371

write a program that reads a series of strings and prints only those strings begging with letter "b"

1070

how to pass data between pages using Cookies

876

Plrase send project in vb.net on hotel management.

1092