What is the use of " char n = 'V' " in the program typed in the description ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

What is the use of " char n = 'V' " in the program typed in the description ?

#include <stdio.h> int main() { char n = 'V'; if (!(n == 'x' || n == 'X')) printf("Roman numeral is not 10.\n"); }

8th Oct 2019, 2:23 PM
Sk. Ahmed Razha Khan
Sk. Ahmed Razha Khan - avatar
1 Antwort
+ 5
Hi Razha Garrix! Char stands for character (in this case "V") V = 5 in Roman Numerals and X = 10
8th Oct 2019, 2:37 PM
Jayden LeCorps
Jayden LeCorps - avatar