C Interview Questions
Questions Answers Views Company eMail

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

Accenture, Wipro,

2052

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 6336

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

1 7303

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 3749

what is the return type of printf

3 5129

what is difference between ANSI structure and C99 Structure?

Wipro,

1 4416

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 6305

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

1 3710

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 11432

what is the difference b/w NULL and null?

HSBC, IBM,

3 6184

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

3 7684

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

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

71 256160

what type of questions arrive in interview over c programming?

1805

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

1 4479

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 2829


Post New C Questions

Un-Answered Questions { C }

Write a code to generate a series where the next element is the sum of last k terms.

1012


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2469


What is wrong with this initialization?

810


Explain the concept and use of type void.

891


Why is c fast?

825


what are the 10 different models of writing an addition program in C language?

1694


What is the difference between null pointer and wild pointer?

946


What is clrscr ()?

905


What is a floating point in c?

853


What is pointer in c?

981


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

852


What is binary tree in c?

879


What is a method in c?

851


What is a buffer in c?

796


Explain can the sizeof operator be used to tell the size of an array passed to a function?

838