Top

Discussion

We want to create an alias name for an identifier of the type unsigned long. The alias name is: ul. The correct way to do this using the keyword typedef is ____________

  • A.typedef unsigned long ul;
  • B.unsigned long typedef ul;
  • C.typedef ul unsigned long;
  • D.ul typedef unsigned long;

Answer: A

The syntax of the keyword typedef is: keyword ;
Hence if we want to create an alias name (ul) for an identifier of type unsigned long, the correct way to do this would be: typedef unsigned long ul;

No comment is present. Be the first to comment.
Loading…

Post your comment