C Interview Questions
Questions Answers Views Company eMail

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

Accenture, Wipro,

1876

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 6019

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

1 7071

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 3447

what is the return type of printf

3 4739

what is difference between ANSI structure and C99 Structure?

Wipro,

1 4199

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 6052

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

1 3489

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 10727

what is the difference b/w NULL and null?

HSBC, IBM,

3 5796

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

3 7305

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

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

71 251112

what type of questions arrive in interview over c programming?

1648

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

1 4251

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 2613


Post New C Questions

Un-Answered Questions { C }

Explain union. What are its advantages?

704


What do you mean by Recursion Function?

728


Explain what is dynamic data structure?

757


What does s c mean in text?

709


What is the size of empty structure in c?

682






How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15736


Is it better to use malloc() or calloc()?

748


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3357


What does p mean in physics?

686


What is s in c?

716


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1579


Write a program of prime number using recursion.

709


Explain how can I write functions that take a variable number of arguments?

690


number of times a digit is present in a number

1627


What is the difference between variable declaration and variable definition in c?

652