Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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 the significance of c program algorithms?

1141


Which is more efficient, a switch statement or an if else chain?

1017


What does 1f stand for?

1155


What is the argument of a function in c?

1045


What is your stream meaning?

1226


What are the advantage of c language?

1048


Does * p ++ increment p or what it points to?

1117


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1942


How do I use strcmp?

1073


Why doesnt this code work?

1056


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2461


How can I list all of the predefined identifiers?

982


List the difference between a While & Do While loops?

1095


What are 3 types of structures?

1059


When should a type cast not be used?

1056