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 1809

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

1 1237

Why cd or dvd are round why not square.

1 1388

Which driver is a pure java driver

Vertex,

987

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

974

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.

1011

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,

1056

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

969

.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; }

1994

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 ?

802

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,

1115

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

1008

largest Of three Number using without if condition?

1005

What is your favorite subject?

Ericsson, Invendis, Tech Mahindra,

1 1343

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

1124


Post New C Questions

Un-Answered Questions { C }

Is sizeof a keyword in c?

574


Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa. 2. Enter alphanumeric characters and form 2 array alphaets and digits.Also print the count of each array. 3. Find the count of a certain character. 4. Print the positions where a certain character occured. 5. Print the characters between successive array elements. 6. Find the largest and smallest charcter. How many times it each one occured. 7. Enter a certain range. Print out the array elements which occured between these range. 8. Reverse a character array without using another array. 9. Reverse an array region. 10. Replace a the array elements with it next character . Use a after z. 11. Code the array element with certain character as first alphabet. 12. Duplicate all the vowels in a character array. What is the new count. 13. Delete the vowels in a character array. What is the new array count. 14. Print the count of all characters in the array. 15. Enter n alphabets and store a upto tht charcter in array.What is the array count? 16. Sort a character array. 17. Merge 2 character arrays largearray,smallarray. 18. Find the pair with largest number of characters in between. 19. Find the numerical value of a charcter array. 20. Store n numeral characters in an arrray. Insert another numeral character in a certain position. 21. Insert a character in a sorted array. 22. Merge 2 sorted arrays in sorted fashion. 23. Duplicate the least occuring character. 24. Write a menu driven program to circular right/left shift an array of n elements. 25. Is the character array palindrome? if not make it palindrome. 26. Concatenate the first n charaters to the end of the string. 27. Print all n group of chracters which are palindrome. 28. Concatneate the reverse of last n characters to the array.

3340


What is sizeof array?

606


What does c mean before a date?

585


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

574






Explain modulus operator. What are the restrictions of a modulus operator?

597


What is actual argument?

587


What is the condition that is applied with ?: Operator?

656


Why are all header files not declared in every c program?

598


How many identifiers are there in c?

576


What are types of functions?

561


How can I read and write comma-delimited text?

616


Explain how can I make sure that my program is the only one accessing a file?

618


How we can insert comments in a c program?

630


What is a constant?

628