#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


Please Help Members By Posting Answers For Below Questions

What is a keyword?

747


Where is volatile variable stored?

652


What is an auto keyword in c?

643


How do I use void main?

635


What’s a signal? Explain what do I use signals for?

611






What is the difference between fread and fwrite function?

640


Are bit fields portable?

680


What is void main ()?

613


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

2725


Explain what are header files and explain what are its uses in c programming?

628


Explain modulus operator. What are the restrictions of a modulus operator?

600


Which programming language is best for getting job 2020?

607


What are global variables?

648


a c code by using memory allocation for add ,multiply of sprase matrixes

2305


write a c program to find the sum of five entered numbers using an array named number

1617