Character Types :: Discussion

2.Given the variables p, q are of char type and r, s, t are of int type. Select the right statement?
A.1 is true but 2 is false
B.1 is false and 2 is true
C.Both 1 and 2 are true
D.Both 1 and 2 are false
Answer:  Option  C

Every character constant has an integer value. Also char belongs to the integral type hence arithmetic and logical operations can be performed on them.

Tutorial Link:
Published by:

Comments are not available

Post your comments here:


Quick Links

GAT Subject

   Computer Science    English Mcqs    Agriculture    


   Computer Science    Civil Engineering    


   Networking    Electronics    Database    

Past Papers

   Model Papers    FPSC Papers