|
INTERVIEW QUESTIONS
C
VARIABLES IN C
DETAILS
Question: What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a,b;
a) float b) float pointer c) int d) int pointer
Answer: The answer is Option Ahere the statement FLOATPTR a,b;becomes float* a,b;here "a" is a float pointer, but "b" is just an float variable.so the correct type for "b" is "float", and not "float-pointer"
|
|
|
Category |
Variables in C Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9850 users |
Added on |
7/19/2011 |
Views |
70737 |
Rate it! |
|
|
Question:
What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a,b;
a) float b) float pointer c) int d) int pointer
Answer:
The answer is Option Ahere the statement FLOATPTR a,b;becomes float* a,b;here "a" is a float pointer, but "b" is just an float variable.so the correct type for "b" is "float", and not "float-pointer" 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 |
|
A switch statement cannot include
a) constants as arguments b) constant expression as arguments c) string as an argument d) None of the above
|
View Answer
|
|
How to swap the content of two variables without a temporary variable
|
View Answer
|
|
Where are the auto variables stored? What is the use of register variables?
|
View Answer
|
|
What is an lvalue?
|
View Answer
|
|
Can a variable be both const and volatile?
|
View Answer
|
|
How can you determine the maximum value that a numeric variable can hold?
|
View Answer
|
|
Is it acceptable to declare/define a variable in a C header?
|
View Answer
|
|
What is the difference between declaring a variable and defining a variable?
|
View Answer
|
|
Can static variables be declared in a header file?
|
View Answer
|
|
What is the benefit of using const for declaring constants?
|
View Answer
|
|
What is the benefit of using #define to declare a constant?
|
View Answer
|
|
What is the benefit of using an enum rather than a #define constant?
|
View Answer
|
|
What is storage class and what are storage variable ?
|
View Answer
|
|
What are the advantages of auto variables?
|
View Answer
|
|
Differentiate between an internal static and external static variable?
|
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 Variables in C Interview Questions & Answers - Exam Mode /
Learning Mode
|