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 4789

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

Hexaware,

3 14238

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

1 4891

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

3 30596

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

7 49057

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

Google, HCL, Quick Heal, WTF,

4 35297

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

3 13093

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

2 16033

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

2 18265

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

1 4996

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

2 4029

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

2 6641

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

2 7364

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

3 5852

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

1 5254


Un-Answered Questions { Code Snippets }

Code for Presenting Parent/Child Data in a Data Grid Row?

2098


Could u please tell me any UNIX scripts that 'll lead to find the network latency of the servers.?or else any unix command to find the network latency of a server?Thnx in advance...

1694


how to test pierrot divisor

2246


code to positioning of window in certain dimensions

1654


Code for Adding Scripting Support to an Application?

1374






sample code to auto focusing the first field in a form

2023


What is XML DOM?

395


how to track links visited in google using iframes

2269


What software is available for XML?

360


write a vb script to check equal two 2*2 matrix

1042


How can manage theme in php?

2020


Write a program to model an exploding firecracker in the xy plane using a particle system

3677


What is the functionality of FindWindow?

559


Write a function to efficiently convert a floating point number to a rational number. For example, given 0.125 return "1/8"

1170


Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why?

8028