stings using pointer to convert lowercase to uppercase letters but the following code throws an error
   i want to convert lowercase letters to uppercase letters through pointers n below code doecnt work, throws some error., 

    #include<stdio.h>
    
    int main()
    {
    
    	char somearray[10]; char mask;
    
    	mask = 1 << 5;
    	mask = ~mask;
    
    	char *someptr;
    
    	gets(somearray);

	

            puts(somearray);
        
        	someptr =&somearray[0];
        
            while (*someptr != '\n')
           {
        	 *someptr = *someptr & mask ;
        
             someptr++;
           }
           printf("%s",someptr);
    
          return 0;
          } 
    
     
    


got an ERROR:
    not able to compile , if compiled runtime error


stings using pointer to convert lowercase to uppercase letters but the following code throws an error
===

   i want to convert lowercase letters to uppercase letters through pointers n below code doecnt work, throws some error., 

    #include<stdio.h>
    
    int main()
    {
    
    	char somearray[10]; char mask;
    
    	mask = 1 << 5;
    	mask = ~mask;
    
    	char *someptr;
    
    	gets(somearray);

	

            puts(somearray);
        
        	someptr =&somearray[0];
        
            while (*someptr != '\n')
           {
        	 *someptr = *someptr & mask ;
        
             someptr++;
           }
           printf("%s",someptr);
    
          return 0;
          } 
    
     
    


got an ERROR:
    not able to compile , if compiled runtime error

