Easily Face the Interview of C Language
Author:satty jones
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.
• 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.
Article Source: http://www.articlesbase.com/online-education-articles/c-interview-questions-easily-face-the-interview-of-c-language-5166161.html
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.