What happens if I assign more than one character to the getchar() function? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

What happens if I assign more than one character to the getchar() function?

6th May 2020, 1:19 PM
kristidhar pandit
kristidhar pandit - avatar
5 Antworten
+ 1
You cannot assign getchar(). Instead, you assign char variable with getchar(). That is, You can: character = getchar(); But can't getchar() = character; EDIT: assigning char variable with more than one character with getchar() is not possible.
6th May 2020, 2:12 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
Thanks...mean it..!
6th May 2020, 2:48 PM
kristidhar pandit
kristidhar pandit - avatar
+ 1
I know that's not possible...but my qs was what would happen...
6th May 2020, 2:49 PM
kristidhar pandit
kristidhar pandit - avatar
+ 1
Ya...love ur answer...!
7th May 2020, 2:20 AM
kristidhar pandit
kristidhar pandit - avatar
+ 1
Martin Taylor ..can you give me ur contact number or email id ....??
7th May 2020, 2:21 AM
kristidhar pandit
kristidhar pandit - avatar