(c language) code work in turbo c++ but not in code blocks | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

(c language) code work in turbo c++ but not in code blocks

hello, this code works in turbo c++ but not in code blocks .. WHY ?? #include<stdio.h> char toBigLetter (char *ptr) { *ptr=int(*ptr)-32; } main() { char inputchar; printf("enter small letter"); scanf("%c",&inputchar); toBigLetter (& inputchar ); printf("Big to it is=%c", inputchar); }

13th Oct 2020, 8:51 AM
saso yoo
saso yoo - avatar
2 Antworten
+ 1
you have some errors. try this: https://code.sololearn.com/cQK0tc2vXCSb/?ref=app
13th Oct 2020, 9:10 AM
Flash
0
thanks Flash i also found another solution *ptr = (int)(*ptr)-32; instead of *ptr = int(*ptr)-32;
13th Oct 2020, 9:41 AM
saso yoo
saso yoo - avatar