Why do some versions of toupper act strangely if given an upper-case letter?
Answer / Anupam Bharti
Different versions of C libraries and compilers may handle conversion between upper and lower case characters differently. Some older implementations of toupper() and tolower() have strange behaviors when given upper-case letters, as they don't convert these characters to themselves. Modern C standards ensure that toupper() converts any upper-case letter to itself, while tolower() converts it to its corresponding lower-case equivalent.
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between malloc() and calloc() function?
What is void main ()?
What is unary operator?
write a program to print calender using for loop.
main() { int i; printf("%d",i^i); }
Explain following declaration int *P(void); and int (*p)(char *a);
code for replace tabs with equivalent number of blanks
How can I read data from data files with particular formats?
What is scope of variable in c?
can a union be self-referenced?
What is the meaning When we write "#include" what is # and what does include does there???
What is volatile, register definition in C