C Interview Questions
Questions Answers Views Company eMail

write a program for the normal snake games find in most of the mobiles.

Accenture, Wipro,

1775

Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

HCL, IBM, Satyam, Vimal, Vimukti Technologies,

2 5781

how to reverse string "Hello World" by using pointers only. Without any temp var

1 6893

What has to put when we are inserting as assembly language code into the C code? or When we are inserting as assembly language code into the C code we have to insert one thing at the start and of the assembly language. What are they?

2 3220

what is the return type of printf

3 4484

what is difference between ANSI structure and C99 Structure?

Wipro,

1 4045

struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?

Wipro,

1 5850

Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 3347

Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

Accenture, Gridco, IBM, Kevin IT, TCS, Vimukti Technologies,

7 10245

what is the difference b/w NULL and null?

HSBC, IBM,

3 5502

void main() { int a[]={1,2,3,4,5},i; for(i=0;i<5;i++) printf("%d",a++); getch(); }

3 6738

what is the meaning of java that is (J A V A) full form of JAVA

AKS University, Bhel, BNL, BPO, HCL, Peacecon,

71 246846

what type of questions arrive in interview over c programming?

1543

main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 4067

In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }

1 2444


Post New C Questions

Un-Answered Questions { C }

Can we add pointers together?

604


What does typedef struct mean?

644


Explain what are its uses in c programming?

583


How many loops are there in c?

569


How many main () function we can have in a project?

602






For what purpose null pointer used?

597


What is #ifdef ? What is its application?

635


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

601


What is s in c?

596


Differentiate between declaring a variable and defining a variable?

596


what is reason of your company position's in india no. 1.

1767


Why c is called top down?

615


Write programs for String Reversal & Palindrome check

590


Explain how does free() know explain how much memory to release?

562


Write a code on reverse string and its complexity.

593