823 views
2 2 votes
What will be the output of following program?

#include <stdio.h>
void f1(char* str, int index)
{
   *(str + index) &= ~32;
}
int main()
{
   char arr[] = "gatecsit";
   f1(arr, 0);
   printf("%s", arr);
   return 0;
}

 

What is the output of the above program?

Please log in or register to answer this question.

Position:
Show:

No related questions found