#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?
Answers were Sorted based on User's Feedback
Answer / shiva
ch1,ch3 and ch4 are char* types whiel ch2 is char type.
Please let me know if I am wrong.
| Is This Answer Correct ? | 22 Yes | 5 No |
Answer / 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 |
Answer / ashish
ch1 and ch2 are the char * and ch2 and ch4 are char type
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / movemaker
^^All 4 will be char* types, why the hell would ch2 be char type like said above by Shiva . :P .
| Is This Answer Correct ? | 1 Yes | 7 No |
control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent
What is the use of f in c?
write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com
What is the use of typedef in c?
what are bit fields? What is the use of bit fields in a structure declaration?
0 Answers Flextronics, TISL, Virtusa,
Concat two string with most overlapped substring has to remove "abcd"+ "cdef" = "abcdef
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What are variables and it what way is it different from constants?
What is wild pointer in c?
List the difference between a "copy constructor" and a "assignment operator"?
pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?
2 Answers eClerx, Excel, kenexa,
out put of printf(“%d”,printf(ram));