I was trying to implement toupper() functionality using bitwise operations (assuming only alphabets as input).
Code:
#include <stdio.h>
#include <ctype.h>
int main()
{
int i=0;
unsigned int mask = ~32;
char buffer[512] = "Hello there THis IS better Than THE Best";
printf("%s\n",buffer);
while
Leave a comment: