Code Snippets Interview Questions
Questions Answers Views Company eMail

main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }

1 14949

main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }

CSC, GoDB Tech, IBM,

9 36271

main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

1 6919

main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }

1 8072

void pascal f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } void cdecl f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }

1 9314

What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 3682

main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 5353

main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 13111

Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 5133

What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }

1 6250

typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }

1 5451

#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 4583

#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 5840

What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

1 4866

void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }

1 5167


Un-Answered Questions { Code Snippets }

Code to Block submission of form by pressing Enter Key

2057


What is SGML?

331


What is the functionality of EnumWindows?

536


plz send code for manage group of hotels in j2ee frontend:J2EE Backend: DB2 Express

2406


could you please teach me how to program an income tax using functions

244






Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

2549


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

1689


Can Any one suggest how we connect QTP and Mainframe and do validation from Mainfram screen

1922


Code for Easily Using Hash Table?

2379


how to take time as input in the format (12:02:13) from user so that controls remains between these columns?

1802


write a code to generate pseudorandom numbes

1775


Can we run Applet in Web browser with security policy files

2073


Reading which Non-Character Key was pressed

1681


What is XML Element?

393


How to use Client-side Script to Focus Controls in ASP.NET?

2349