#define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
Answer Posted / james holdcroft
Explanation:
DCHAR is a macro, which is expanded by the preprocessor.
TCHAR is a synonym for a pointer-to-char type.
After preprocessing, the code fragment expands to:
char* ch1, ch2;
TCHAR ch3, ch4;
which is perhaps more clearly written as:
char *ch1, ch2;
TCHAR ch3, ch4;
which is equivalent to:
char *ch1; char ch2;
char *ch3; char *ch4;
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the significance of c program algorithms?
Which is more efficient, a switch statement or an if else chain?
What does 1f stand for?
What is the argument of a function in c?
What is your stream meaning?
What are the advantage of c language?
Does * p ++ increment p or what it points to?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
How do I use strcmp?
Why doesnt this code work?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
How can I list all of the predefined identifiers?
List the difference between a While & Do While loops?
What are 3 types of structures?
When should a type cast not be used?