C Interview Questions
Questions Answers Views Company eMail

What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 1822

write a c program to find largest of three numbers using simple if only for one time.

1 1253

Why cd or dvd are round why not square.

1 1403

Which driver is a pure java driver

Vertex,

996

In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

983

Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1016

The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

Microsoft,

1070

Explain output of printf("Hello World"-'A'+'B'); ?

981

.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2004

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 ?

807

Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

Zoho,

1123

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

1018

largest Of three Number using without if condition?

1012

What is your favorite subject?

Ericsson, Invendis, Tech Mahindra,

1 1361

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1128


Post New C Questions

Un-Answered Questions { C }

How do we make a global variable accessible across files? Explain the extern keyword?

1427


can anyone please tell about the nested interrupts?

1679


What is c language in simple words?

598


Does c have class?

615


What happens if you free a pointer twice?

615






Can a pointer be static?

629


Is calloc better than malloc?

584


Why is not a pointer null after calling free?

600


Explain how do you override a defined macro?

592


Difference between constant pointer and pointer to a constant.

619


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1528


In a header file whether functions are declared or defined?

633


write a progrmm in c language take user interface generate table using for loop?

1576


What is the difference between exit() and _exit() function in c?

586


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1598