ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
 Categories  >>  Code Snippets  >>  Programming Code  >>  C Code       
Suggest New Category 
 


 

View Page with Answers
  Question  Asked @ Answers Views     select
 
char inputString[100] = {0}; To get string input from the keyboard which one of the following is better? 1) gets(inputString) 2) fgets(inputString, sizeof(inputString), fp)  1  81
void main() { printf(“sizeof (void *) = %d \n“, sizeof( void *)); printf(“sizeof (int *) = %d \n”, sizeof(int *)); printf(“sizeof (double *) = %d \n”, sizeof(double *)); printf(“sizeof(struct unknown *) = %d \n”, sizeof(struct unknown *)); }  1  71
Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }  1  26
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };  1  40
Is the following code legal? typedef struct a { int x; aType *b; }aType  1  21
Is the following code legal? struct a { int x; struct a *b; }  1  24
Is the following code legal? struct a { int x; struct a b; }  1  25
#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  21
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }  1  20
What is the hidden bug with the following statement? assert(val++ != 0);  1  16
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }  1  23
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }  1  20
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])  1  19
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  18
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  15
E-Mail New Answers        Answer Selected Questions        Post New C Code Question
 
Prev     1   [2]    3  ... 5   ... 7   ... 9   ... 11   ... 13   ... 15   ... 17   ... 19   ... 21    Next
 
 
 C Code interview questions   C Code Interview Questions  C++ Code interview questions   C++ Code Interview Questions  VC++ Code interview questions   VC++ Code Interview Questions
 Java Code interview questions   Java Code Interview Questions  Dot Net Code interview questions   Dot Net Code Interview Questions  Visual Basic Code interview questions   Visual Basic Code Interview Questions
 Programming Code AllOther interview questions   Programming Code AllOther Interview Questions
 
 
 
Un-Answered Questions
 
 Question Views Asked at   Select
 
main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number 7 HCL
can u give me the c codings for converting a string into the hexa decimal form...... 201  
Implement a t9 mobile dictionary. (Give code with explanation ) 513 Yahoo
write a program for area of circumference of shapes 29  
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange 338  
Write a program to model an exploding firecracker in the xy plane using a particle system 391 HCL
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ? 433 Honeywell
How to count a sum, when the numbers are read from stdin and stored into a structure? 27  
Develop a routine to reflect an object about an arbitrarily selected plane 301  
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i; 50  
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00 120 Microsoft
find simple interest & compund interest 45  
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector 508  
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines 319 IBM
why nlogn is the lower limit of any sort algorithm? 22  
Design an implement of the inputs functions for event mode 300  
Write a routine to implement the polymarker function 406  
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..! 5 GATE entrance
E-Mail New Answers        Answer Selected Questions
 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com