C Interview Questions
Questions Answers Views Company eMail

Juxtapose the use of override with new. What is shadowing?

1 6066

Explain the differences between public, protected, private and internal.

2 8663

Explain what?s happening in the first constructor: public class c{ public c(string a) : this() {;}; public c() {;} } How is this construct useful?

1 7333

What is the difference between typeof(foo) and myFoo.GetType()?

Synergy,

2 11977

What's the difference between a linked list and an array?

14 15784

Describe advantages and disadvantages of the various stock sorting algorithms

Microsoft,

1 8764

How would you find a cycle in a linked list?

NSN,

3 12352

How would you write qsort?

1 5961

How would you print out the data in a binary tree, level by level, starting at the top?

Amazon, Microsoft,

6 22637

If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?

Hughes,

6 8054

f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?

Hughes,

7 8583

what is the different between if-else and switch statment (other than syntax)

CTS, Oracle, Scorpos,

26 73100

f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed

5 6316

helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.

3 6533

helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe

2 5389


Post New C Questions

Un-Answered Questions { C }

What does %c do in c?

578


Is main is a keyword in c?

598


Can a local variable be volatile in c?

571


Is anything faster than c?

575


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.

3338






What are lookup tables in c?

540


Explain what is dynamic data structure?

636


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1624


How do you define a function?

577


What is the sizeof () a pointer?

540


Can we declare a function inside a function in c?

574


What is selection sort in c?

596


Is Exception handling possible in c language?

1570


What is string constants?

653


What is a char in c?

548