Programming Code Interview Questions
Questions Answers Views Company eMail

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

7 49087

#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

Google, HCL, Quick Heal, WTF,

4 35328

main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }

3 13107

#include #define a 10 main() { #define a 50 printf("%d",a); }

2 16045

#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 18276

main() { 41printf("%p",main); }8

1 5009

main() { clrscr(); } clrscr();

2 4040

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

2 6658

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

2 7379

main() { int i=400,j=300; printf("%d..%d"); }

3 5872

main() { char *p; p="Hello"; printf("%c\n",*&*p); }

1 5263

main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }

1 4843

main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }

2 14890

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

3 5616

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

3 5371


Un-Answered Questions { Programming Code }

i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.

1963


write a program to convert temperature from fa height into celcius and vise versa,use modular programming

2434


1+1/2!+1/3!+...+1/n!

1939


what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }

2061


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

1811






Bubble Sort. java thereafter the user will be asked to inpout the size of the list,sort the list in ascending order and display the sorted list in a horizontal manner???

2510


Sir... please give some important coding questions asked by product companies..

1793


find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L

2002


How to Split Strings with Regex in Managed C++ Applications?

3112


Beautiful is for 012345678 9 and a code for similar word containing the same alphabets

5294


write a java program to create a Frame with three scrolls, change the back ground color of the frame using functions with values of scrolls.

4162


What is the functionality of GetWindowText?

542


Can we change the validator-rules.xml for our own validations in struts??

2340


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3024


what are the other loops except for for,while,do while and until?

2281