c interview questions

Easily Face the Interview of C Language

Here are few questions based on C as follows:

• In C if a variable is not assigned a value then why does it take garbage value?

• What is code/binary portability?
• Write a program that compares two files and return 0 if they are equal and 1 if they are not equal.
• When reallocating memory if any other pointers point into same piece of memory do you have to readjust these pointers or do they get readjusted automatically?
• What is the maximum length of command line arguments including space between adjacent arguments?
• What is a BSS data segment?
• Write a program to read a file, strip the comments and write the output to another file.
About the Author
Satty Jones has a passion for life span education or Interview Questions and believes wholeheartedly that a healthy society begins at home. For further information on C Interview Questions how to get started in online Study here.