I don't get why when I try to print value of type from the main it prints nothing, but when i print it from the function it prints the correct value.Code:#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> void search_array (char array[], char type) { if (strcmp ("nop", array) == 0){ type = 'R'; }else if (strcmp ("syscall", array) == 0){ type = 'I'; } printf("%c\n", type); } int main (void) { char type; char array[] = "syscall"; search_array (array, type); printf ("%c\n", type); }