#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
Explain what is dynamic data structure?
Explain 'bit masking'?
Explain the concept and use of type void.
c program for searching a student details among 10 student details
Write a program to implement queue.
How do I use void main?
How can type-insensitive macros be created?
Why c language is called c?
What are inbuilt functions in c?
Write a program to print “hello world” without using semicolon?
Explain the process of converting a Tree into a Binary Tree.
What is fflush() function?
what is the format specifier for printing a pointer value?
Why c is a mother language?
What is indirection?