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 2103

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

IBM, TCS, Wipro, UGC NET,

29 20234

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

1 1613

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

1 2308

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 2717

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

1 1631

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

2 4309

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

1 2203

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

1 2468

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 1961

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

CSC,

1 5193

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

1 1810

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

2 5095

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

CSC, Adobe,

2 9829

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

3 2159



Un-Answered Questions { Code Snippets }

How to check if Folder is a Special Shell Folder ?

275


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

879


Code for Adding Scripting Support to an Application?

1120


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

729


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??

2596


how to pass data between pages using Cookies

831


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

2804


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1016


Hey, any expert here can help me to creat php code. I want php code to calculate like below. input :12 April 1974 then perform this calculation: 12 + 4 + 1974 = 1990 1 + 9 + 9 + 0 = 19 1 + 9 = 10 1 + 0 = 1(final answer) this code i just want to used to share the personality from date of birth. The input come from user, base on user input, then php will calculate like above, and, the final answer will use do display the person attitude. example, final answer = 1, display patient person final answer = 2, will display hard working person

1382


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

1031


code to get the coordinates of a Click Event

891


What is the functionality of EnumWindows?

288


Is there any static classes are in java give some examples

672


write a code to generate pseudorandom numbes

890


how to create a Custom Scrollbar

1174