Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



Code Snippets Interview Questions
Questions Answers Views Company eMail

Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

1 4127

main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 5445

main() { struct date; struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 7686

There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }

1 4820

Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 5796

What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++ 1 5368


What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }

1 4801

What is the hidden bug with the following statement? assert(val++ != 0);

1 6019

void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }

2 5778

#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }

1 8086

Is the following code legal? struct a { int x; struct a b; }

1 4689

Is the following code legal? struct a { int x; struct a *b; }

2 5197

Is the following code legal? typedef struct a { int x; aType *b; }aType

1 4548

Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };

1 4941

Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 5181


Un-Answered Questions { Code Snippets }

can any one give me code to keyed a flat file and used chain in RPGLE to search any item

2005


Write a Program to find the reverse of a given number.

841


How can call any javascript function without saying onclick, onchange, onblur etc events in php?

4570


program to bring a window to the front

2034


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

3989


how to create an anonymous function

2165


determine which Element received an Event

2334


Code to Block submission of form by pressing Enter Key

2507


Write a function that takes an integer and returns the smallest number that is greater than the given number which is a palendrome. For example, if the input was 111 the next palindromic number would be 121.

1804


How to Get File Extension?

525


What is XML DOM Document?

586


How to swap two ASCII numbers?

3053


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?

3364


Can we run Applet in Web browser with security policy files

2574


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

2331