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); }
3 Antworten
+ 1
you have some errors. try this:
https://code.sololearn.com/cQK0tc2vXCSb/?ref=app
0
thanks Flash
i also found another solution
*ptr = (int)(*ptr)-32;
instead of
*ptr = int(*ptr)-32;