in Programming in C
684 views
3 votes
3 votes

Arnold is a novice in C and by mistake he typed "intt" for all usage of "int" in a C code. Which of the following statement added at the beginning of the code should fix the issue for him?

  1. typedef int intt;
  2. typedef intt int;
  3. #define intt int;
  4. #define intt int
  1. 1 and 3
  2. 2 and 4
  3. 3 and 4
  4. 1 and 4
in Programming in C
by
684 views

2 Comments

edited by
arjun sir if 3 is true then 4 cant true... answer will be d
0
0

#define identifier token-string

typedef type declaration ;

So option D is correct.

3
3

1 Answer

5 votes
5 votes
Best answer
#define intt int
typedef int intt;
selected by
Answer:

Related questions