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 (810)   Scripts_Markup Code (196)
 
Suggest New Category 
 


   


Question Asked @ Answers Views     Select
Is the following code legal? typedef struct a { int x; aType *b; }aType    1  1797
Is the following code legal? struct a { int x; struct a *b; }    2  1652
Is the following code legal? struct a { int x; struct a b; }    1  1719
#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  4214
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }    2  2338
What is the hidden bug with the following statement? assert(val++ != 0);    1  2558
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }    1  1727
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  1884
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])    1  2764
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  1655
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  3901
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  1517
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?    1  1185
#include main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr    1  1670
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); } csc   4  7842
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
 
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net. 1324
create Drop-Down Navigation Menus 798
how to pass data between pages using Cookies 794
how exactly is the lngColour used? 861
What is the functionality of GetDesktopWindow? 281
Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } } 800
i have some csv files in a directory which have sub-directories also. now how can i merge all .csv files in to one with a single header. for example: have some 4 files. 1.csv--------name,age,sal abc,25,4000 2.csv--------name,age,sal vgd,32,3500 3.csv--------name,age,sal hfg,20,5000 4.csv--------name,age,sal asd,15,2000 now my output file should be like 5.csv----------name,age,sal abc,25,4000 vgd,32,3500 hfg,20,5000 asd,15,2000 and please explain the code for me. as i am new to scripting. thank you in advance 355
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce. 886
1.What type of material can be sent from a Java servlet to a browser ? How does the browser know how to deal with the material? 2.Explain what happens to a servlet when a servlet engine is sent a GET request. 1084
can we pass variable in array to traverse it? 1030
What is data _null_? ,Explain with code when u need to use it in data step programming ? 1339
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ? 872
why nlogn is the lower limit of any sort algorithm? 936
How to swap two ASCII numbers? 1262
Which keyword is alias for count keyword in php? 735
E-Mail New Answers        Answer Selected Questions