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...

C Code Interview Questions
Questions Answers Views Company eMail

struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }

1 10287

main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }

2 11338

main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }

1 13415

main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }

1 9532

main(int argc, char **argv) { printf("enter the character"); getchar(); sum(argv[1],argv[2]); } sum(num1,num2) int num1,num2; { return num1+num2; }

1 8439

# include int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }

1 6999

# include aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); }

1 7728

#include main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }

1 6551

main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }

1 16128

main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 15394

int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p

2 12343

main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }

TCS,

1 17303

main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }

2 11168

In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 4040

What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }

1 5553


Post New C Code Questions

Un-Answered Questions { C Code }

write a program for area of circumference of shapes

2507


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3598


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3473


Write a routine to implement the polymarker function

4837


Cluster head selection in Wireless Sensor Network using C programming language.

3675


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2492


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1573


why nlogn is the lower limit of any sort algorithm?

2788


How to palindrom string in c language?

10818


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 ?

2720


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

2896


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

4341


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3301


write a simple calculator c program to perform addition, subtraction, mul and div.

3676


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

4438