|
INTERVIEW QUESTIONS
C
FUNCTIONS IN C
DETAILS
Question: output of the following program void main() { unsigned i; i=100*400; printf(
Answer: The output for %d, i.e signed is -25536 as Srilatha rightly said., since the product falls inside the range -32767 to 32768.FOr %u , unsigned the range starts from 0, output is 40000.Rohitp.s: correct me if im wrong any1.
|
|
|
Category |
Functions in C Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9253 users |
Added on |
7/18/2011 |
Views |
68594 |
Rate it! |
|
|
Question:
output of the following program void main() { unsigned i; i=100*400; printf(
Answer:
The output for %d, i.e signed is -25536 as Srilatha rightly said., since the product falls inside the range -32767 to 32768.FOr %u , unsigned the range starts from 0, output is 40000.Rohitp.s: correct me if im wrong any1. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
When function say abc() calls another function say xyz(), what happens in stack?
|
View Answer
|
|
In c , main() is a function . and where is defined main() in c. bcz every function has three parts. 1>. decleration 2>. definition. 3>. calling
|
View Answer
|
|
How to write a C program to find the power of 2 in a normal way and in single step?
|
View Answer
|
|
What is the difference between goto and longjmp() and setjmp()?
|
View Answer
|
|
How do you determine whether to use a stream function or a low-level function?
|
View Answer
|
|
Is it better to use a macro or a function?
|
View Answer
|
|
How do you use a pointer to a function?
|
View Answer
|
|
Why should I prototype a function?
|
View Answer
|
|
What is a static function?
|
View Answer
|
|
Is using exit() the same as using return?
|
View Answer
|
|
Differentiate between a linker and linkage?
|
View Answer
|
|
What is a function and built-in function?
|
View Answer
|
|
What is an argument ? differentiate between formal arguments and actual arguments?
|
View Answer
|
|
What is the purpose of main( ) function?
|
View Answer
|
|
What are the advantages of the functions?
|
View Answer
|
|
What is a method?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Functions in C Interview Questions & Answers - Exam Mode /
Learning Mode
|