Podcast
Questions and Answers
What is the correct escape sequence for a new line in C?
What is the correct escape sequence for a new line in C?
- \n (correct)
- \a
- \r
- \t
Which characters can appear in a valid C program as per the Character Set of C?
Which characters can appear in a valid C program as per the Character Set of C?
- Alphabets: A-Z, a-z, Digits: 0-9, Special Characters: &, !, (, )
- Alphabets: A-Z, a-z, Digits: 0-9, Special Characters: comma, semicolon, * etc. (correct)
- Alphabets: A-Z, a-z, Digits: 0-9, Special Characters: <, >, =, +
- Alphabets: A-Z, a-z, Digits: 0-9, Special Characters: @, $, #, %, ^
What is the maximum number of characters an identifier can have as per ANSI C standards?
What is the maximum number of characters an identifier can have as per ANSI C standards?
- 31 (correct)
- 40
- 25
- 20
Which characters are allowed as the first character for constructing identifiers in C?
Which characters are allowed as the first character for constructing identifiers in C?
What are Escape Sequences in C used for?
What are Escape Sequences in C used for?
Flashcards are hidden until you start studying