C Interview Questions
Questions Answers Views Company eMail

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

Accenture, Wipro,

1773

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 6892

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 4483

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 5846

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

1 3346

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 10244

what is the difference b/w NULL and null?

HSBC, IBM,

3 5500

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

3 6735

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

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

71 246829

what type of questions arrive in interview over c programming?

1541

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

1 4066

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 2443


Post New C Questions

Un-Answered Questions { C }

Do variables need to be initialized?

613


What does double pointer mean in c?

565


What is the use of a static variable in c?

578


Does c have class?

601


writ a program to compare using strcmp VIVA and viva with its output.

1507






What is the difference between malloc() and calloc()?

607


What is the difference between if else and switchstatement

1302


List the different types of c tokens?

606


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

818


Explain goto?

704


What is static and auto variables in c?

548


Ow can I insert or delete a line (or record) in the middle of a file?

563


What is non linear data structure in c?

559


What is the difference between strcpy() and memcpy() function in c programming?

614


How can you return multiple values from a function?

620