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 8188

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

IBM, TCS, UGC NET, Wipro,

29 44019

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

1 3631

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

1 5070

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 8056

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

1 10873

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

2 16475

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

1 6011

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

1 5220

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 5228

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

CSC,

1 12090

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

1 5743

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

2 12693

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

Adobe, CSC,

2 24229

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

3 4691


Un-Answered Questions { Code Snippets }

write a program using 2 D that searches a number and display the number of items 12 inputs values input 15,20, 13, 30, 38, 40,16, 18, 20 ,18 ,20 enter no. to search : 20

3350


What is XML Parser?

442


code to positioning of window in certain dimensions

1652


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4122


code to create a new window

1744






advance the focus to next consecutive fields when Enter Key is pressed

1784


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,

1728


How to find the list of users who have two codes su01 and pfcg? thank in advance all.

1684


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2725


Which keyword is alias for count keyword in php?

1666


how to remove or delete multiple selected items from listbox in on button click in asp?

627


how to copy form data between different pages

1661


How can a procedure fetch data from FTP? I need a general code for this..

1361


What is full form of PEPSI

1846


What is well formed XML document?

355