Code Snippets Interview Questions
Questions Answers Views Company eMail

#include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }

1 4821

#include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }

Hexaware,

3 14317

#include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }

1 4918

main() { printf("\nab"); printf("\bsi"); printf("\rha"); }

3 30694

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

7 49236

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

Google, HCL, Quick Heal, WTF,

4 35399

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

3 13128

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

2 16095

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

2 18317

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

1 5029

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

2 4064

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

2 6677

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

2 7397

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

3 5892

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

1 5283


Un-Answered Questions { Code Snippets }

how to test pierrot divisor

2264


How to encode and decode URL strings?

1802


Write a python program to check if a string is a palindrome or not?

502


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3274


Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

2252






What are the disadvantages of XML?

305


What are nested elements in XML?

351


How we work on N tire architecture in asp.net Please give me Examle...

16604


Write a program to convert postfix expression to infix expression.

4114


Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?

2915


What is the output when we execute list(“hello”)?

628


How to swap two ASCII numbers?

2451


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2417


What is XQuery?

362


How to add a value from textBox over an existing certain column in SQL Server

2258