C Interview Questions
Questions Answers Views Company eMail

What are the different pointer models in c?

4 3308

What is sparse file?

1 2884

How to set a variable in the environment list?

1 3160




How to reverse a string using a recursive function, without swapping or using an extra memory?

Wipro, TCS, Sony, Cisco, Motorola, Mind Tree, Ophio,

31 83183

What is the Difference between Class and Struct?

Motorola,

10 7331

What is the Difference between Macro and ordinary definition?

Motorola, Cognizant, Bosch, College School Exams Tests,

3 15497

what are brk, sbrk?

Oracle,

1 5768

Why the use of alloca() is discouraged?

Oracle,

2 5801




Will Macros support multiple arguments ?

Oracle,

7 6963

what about "char *(*(*a[])())();"

Oracle,

3 3428

Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?

Oracle,

4 5370

#include #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?

Oracle, Accel Frontline, Opera,

16 18021

1 232 34543 4567654 can anyone tell me how to slove this c question

6 13490

Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;

Wipro, ITCO,

5 5441

int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

TCS,

4 8684


Post New C Questions






Un-Answered Questions { C }

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

917


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

723


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1106


int i=10; printf("%d %d %d", i, i=20, i);

240


show how link list can be used to repersent the following polynomial i) 5x+2

952






Write a progarm to find the length of string using switch case?

879


how to write optimum code to divide a 50 digit number with a 25 digit number??

1998


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

1105


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

456


Why is it important to memset a variable, immediately after allocating memory to it ?

864


find out largest elemant of diagonalmatrix

879


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

1575


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1141


How to write a code for reverse of string without using string functions?

860


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

723