ALLInterview.com :: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
 Categories >> Code Snippets
 
  Programming Code (806)   Scripts_Markup Code (196)
 
Suggest New Category 
 


 

Question Asked @ Answers Views     Select
Is the following code legal? struct a { int x; struct a b; }    1  1586
#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  3988
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }    2  2212
What is the hidden bug with the following statement? assert(val++ != 0);    1  2390
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }    1  1635
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  1786
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])    1  2580
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  1538
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  3687
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  1452
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?    1  1099
#include main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr    1  1541
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); } csc   4  7390
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }    1  1940
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }    1  2937
E-Mail New Answers        Answer Selected Questions       
Prev    1   ... 6   ... 11   ... 16   ... 21   ... 26    32   [33]    34  ... 41   ... 46   ... 51   ... 56   ... 61   ... 66    Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
What is Generic" J2ME architecture? 589
I need your help, i need a Turbo C code for this problem.. hope u'll help me guys.? Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array. Example: Input: Sum of row 1: 6 Sum of row 2: 15 Sum of row 3: 24 Sum of column 1: 12 Sum of column 2: 15 Sum of column 3: 18 Value 1: 3 Value 2: 5 Value 3: 6 Output: Sum of Row 1 2 3 6 4 5 6 15 7 8 9 24 Sum of Column 12 15 18 Note: Your program will not necessary sort the walues in the array Thanks.. 1315
How can i know that how many user are visited to my page in php? 711
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail 732
1.Explain what happens to a session object when the browser associated with it is closed? 2.Explain how a session object is created and used. (Note: you are not required to provide the Java statements such as ‘getAttribute’) 977
write a program using virtual function to find the transposing of a square matrix? 1582
what does mbln in mblnrects mean? my boolean? 1346
Beautiful is for 012345678 9 and a code for similar word containing the same alphabets 56
write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation 909
hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz 1455
How to add a value from textBox over an existing certain column in SQL Server 1169
Can we change the validator-rules.xml for our own validations in struts?? 1114
code to set the main window's size 730
Dear sirs, Hi, I would like to inform you that I want to perform a project using MLP neural network to recognize binary images containing three types of geometric shapes such as squares,rectangels and circles. Furthermore,each image includes only one geometric type. The output of network would be: '1' if the network detects square shape. '2' if the network detects rectangle shape. '3' if the network detects circle shape. '4' if none of these shapes detected. Would you please send me a matlab source code for this project? Your prompt reply would be so appreciated. regards, 766
can any one give me code to keyed a flat file and used chain in RPGLE to search any item 674
E-Mail New Answers        Answer Selected Questions