C Interview Questions
Questions Answers Views Company eMail

can we store values and addresses in the same array? explain

TCS,

3 10540

what is the difference between NULL('\0') and 0?

Microsoft,

14 16353

IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

TCS,

5 6173

what is function pointer?

Wipro,

2 4533

write a c program to convert fahrenheit to celsius?

TCS,

4 11836

There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

3083

Write a program to print distinct words in an input along with their count in input in decreasing order of their count

1995

write a program to convert a expression in polish notation (postfix) to inline (normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix

2886

Program to simulate second clock

2 3144

to convert a string without using decrement operater and string functions

1 2791

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }

6 10340

What is the difference between i++ and i+1 ?(in terms of memory)

HCL,

3 11127

Difference between for loop and while loop?

1 3894

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 2584

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 3054


Post New C Questions

Un-Answered Questions { C }

What is dynamic memory allocation?

795


What is the correct declaration of main?

663


How do you construct an increment statement or decrement statement in C?

729


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1775


What is wrong with this initialization?

575






Why ca not I do something like this?

580


Which header file should you include if you are to develop a function which can accept variable number of arguments?

795


What is && in c programming?

665


Why is it important to memset a variable, immediately after allocating memory to it ?

1542


Why static variable is used in c?

542


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4894


Explain null pointer.

612


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

797


Can a variable be both constant and volatile?

547


Explain what is the difference between far and near ?

637