C Interview Questions
Questions Answers Views Company eMail

i=20,k=0; for(j=1;j

HCL,

8 11536

int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i);

HCL, SW, Octal,

6 13037

f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error

HCL,

4 3749




which of the function operator cannot be over loaded a) <= b)?: c)== d)*

Cisco, HCL, CTS, Google, HP,

10 22480

long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

TCS, Intel, HCL, Acropolis,

18 27957

x=2,y=6,z=6 x=y==z; printf(%d",x)

TCS, Cisco, HCL, Bharat,

13 22982

int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?

Verifone,

14 16735

proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?

Hughes,

7 5003




int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

Hughes,

6 7670

In scanf h is used for

BFL,

4 8529

what does " calloc" do?

Cadence, Logos,

7 7654

what does exit() do?

Cadence,

3 6582

what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Cadence, Zen Technologies, JNTU,

7 8419

prototype of sine function.

Cadence,

2 5315

#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 10373


Post New C Questions






Un-Answered Questions { C }

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

1108


plz let me know how to become a telecom protocol tester. thank you.

1025


what type of questions arrive in interview over c programming?

880


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

4484


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

943






difference between object file and executable file

4337


#include { printf("Hello"); } how compile time affects when we add additional header file .

707


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

1304


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

775


What is your favorite subject?

162


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.

1576


what are # pragma staments?

854


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

94


in linking some of os executables are linking name some of them

902


How to implement a packet in C

1628