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

#include main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

1 4710

#include main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }

1 5605

#include main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }

Hexaware,

3 16051

#include main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }

1 5758

main() { printf("\nab"); printf("\bsi"); printf("\rha"); }

3 33057

main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }

7 52576

#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

Google, HCL, Quick Heal, WTF,

4 37467

main() { char *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }

3 14732

#include #define a 10 main() { #define a 50 printf("%d",a); }

2 17443

#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 19516

main() { 41printf("%p",main); }8

1 5867

main() { clrscr(); } clrscr();

2 5053

enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

2 7579

void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }

2 8484

main() { int i=400,j=300; printf("%d..%d"); }

3 7321


Post New C Code Questions

Un-Answered Questions { C Code }

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 ?

2779


3) Int Matrix of certain size was given, We had few valu= es in it like this. =97=97=97=97=97=97=97=97=97=97=97 1 = | 4 | | 5 | &= nbsp; | 45 =97=97=97=97=97=97=97=97=97=97=97 &n= bsp; | 3 | 3 | 5 | = | 4 =97=97=97=97=97=97=97=97=97=97=97 34 |&nbs= p; 3 | 3 | | 12 | &= nbsp; =97=97=97=97=97=97=97=97=97=97=97 3 | &nbs= p; | 3 | 4 | = | 3 =97=97=97=97=97=97=97=97=97=97=97 3 | = ; | | | = ; 3 | =97=97=97=97=97=97=97=97=97=97=97 &= nbsp; | | 4 | = ; | 4 | 3 We w= ere supposed to move back all the spaces in it at the end. Note: = If implemented this prog using recursion, would get higher preference.

3788


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

1652


why nlogn is the lower limit of any sort algorithm?

2865


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

4540


What is full form of PEPSI

2430


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

3548


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

3656


could you please send the program code for multiplying sparse matrix in c????

3592


How can I Create a C program in splitting set of characters to specific subsets. Example: INPUT SET OF CHARACTERS: Therefore, my dear brothers and sisters, stand firm. Let nothing move you. Always give yourselves fully to the work of the Lord, because you know that your labor in the Lord is not in vain. SPLIT INTO HOW MANY CHARACTERS PER SUBSETS: 10 OUTPUT: Therefore, my dear b rothers an d sisters, stand fir m. Let not hing move you. Alway s give you rselves fu lly to the work of t he Lord, b ecause you know that your labo r in the L ord is not in vain.

2554


write a program for area of circumference of shapes

2583


Sir... please give some important coding questions asked by product companies..

2279


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

2559


Design an implement of the inputs functions for event mode

3534


how to test pierrot divisor

2772