#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 are the types of bitwise operator?
What are type modifiers in c?
Write a program to print “hello world” without using semicolon?
Write a program of advanced Fibonacci series.
What does %d do in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What are qualifiers and modifiers c?
Explain what is a static function?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What is integer constants?
Why we use break in c?
Explain the meaning of keyword 'extern' in a function declaration.
Why is c platform dependent?
can any one provide me the notes of data structure for ignou cs-62 paper
Can true be a variable name in c?