Q:

Which of the following format specifiers is used to print hexadecimal values and return value of output as Octal equivalent in C#?

(a) %hx for small case letters and %HX for capital letters

(b) %x for small case letters and %X for capital letters

(c) No ease of doing it. C# don’t provides specifier like %x or %O to be used with ReadLine() OR WriteLine(). We have to write our own function

(d) %Ox for small case letters and %OX for capital letters

I have been asked this question during a job interview.

Query is from Floating and Decimal Data Types topic in chapter Data Types, Variables and Operators of C#

C#

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.