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 2306

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


29 21684

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

1 1807

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

1 2509

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 2912

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

1 1793

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

2 4720

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

1 2327

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

1 2601

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 2119

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


1 5699

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

1 2009

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

2 5525

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

CSC, Adobe,

2 10641

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

3 2336

Un-Answered Questions { Code Snippets }

How to block double clicks


can any one give me code to keyed a flat file and used chain in RPGLE to search any item


Code for Adding Scripting Support to an Application?


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.


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


Code for Two Classes for Doing Gzip in Memory?


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,


How to Print GridView Data on Button Click using Javascript?


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.


Discuss an algorithm to traverse a tree, depth first.


can we pass variable in array to traverse it?


What is the functionality of EnumChildWindows?


Coding for Synchronizing Cache Access in ASP.NET?


plz tell me the exam date for clerks in sbi


What is the coding about how to recognize color in fuzzy logic using Matlab R2009b?