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 4776

#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 5673

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

Hexaware,

3 16203

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

1 5838

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

3 33203

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

7 52798

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

Google, HCL, Quick Heal, WTF,

4 37674

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

3 14884

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

2 17545

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

2 19609

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

1 5934

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

2 5139

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

2 7667

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

2 8565

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

3 7436


Post New C Code Questions

Un-Answered Questions { C Code }

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

2602


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.

3282


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2758


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

7047


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

2330


Write a routine to implement the polymarker function

4965


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2540


why nlogn is the lower limit of any sort algorithm?

2895


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

4620


Write a program to model an exploding firecracker in the xy plane using a particle system

4203


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

3429


What is full form of PEPSI

2484


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

1692


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

3775


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

1041