C Interview Questions
Questions Answers Views Company eMail

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

1 4625

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

2 7233

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

1 5813

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


2 9129

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

14 10578

Describe advantages and disadvantages of the various stock sorting algorithms


1 7455

How would you find a cycle in a linked list?


3 10411

How would you write qsort?

1 4752

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

Amazon, Microsoft,

6 17836

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?


6 4657

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


7 4440

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

Oracle, CTS, Scorpos,

26 61410

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 3990

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 4834

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

2 3841

Post New C Questions

Un-Answered Questions { C }

List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.


which type of aspect you want from the student.


Write a C program to count the number of email on text


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical


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.


why we wont use '&' sing in aceesing the string using scanf


write a proram to reverse the string using switch case?


regarding pointers concept


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......


C language questions for civil engineering


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?


Why is event driven programming or procedural programming, better within specific scenario?