C Interview Questions
Questions Answers Views Company eMail

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

Accenture, Wipro,

1181

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 4484

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

1 5602




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 2101

what is the return type of printf

3 3016

what is difference between ANSI structure and C99 Structure?

Wipro,

1 3044

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 3152

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

1 2297




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, TCS, Vimukti Technologies, Kevin IT,

7 6540

what is the difference b/w NULL and null?

HSBC, IBM,

3 3492

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

3 4019

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

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

71 213964

what type of questions arrive in interview over c programming?

902

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

1 2737

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 1456


Post New C Questions






Un-Answered Questions { C }

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

747


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

964


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

1757


How to establish connection with oracle database software from c language?

969


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

4513






why we wont use '&' sing in aceesing the string using scanf

1093


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

16923


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

1954


what is the syallabus of computer science students in group- 1?

1126


What is ambagious result in C? explain with an example.

1162


What is pre-emptive data structure and explain it with example?

2497


write a proram to reverse the string using switch case?

1524


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

805


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

3713


What is the code for 3 questions and answer check in VisualBasic.Net?

1029