#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 a keyword?
Where is volatile variable stored?
What is an auto keyword in c?
How do I use void main?
What’s a signal? Explain what do I use signals for?
What is the difference between fread and fwrite function?
Are bit fields portable?
What is void main ()?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Explain what are header files and explain what are its uses in c programming?
Explain modulus operator. What are the restrictions of a modulus operator?
Which programming language is best for getting job 2020?
What are global variables?
a c code by using memory allocation for add ,multiply of sprase matrixes
write a c program to find the sum of five entered numbers using an array named number