hola, como puedo hacer que al ingresar un numero, muestre un string ? me dice error, aca tengo el código.
    
Código C:
Ver original- #include <stdio.h> 
- #include <conio.h> 
- #include <string.h> 
-   
- int main() { 
-      
-     int sexo = 0; 
-     char tiposexo[10]; 
-      
-     printf("Ingrese un sexo: \"1\" para Hombre \"2\" para Mujer: "); 
-      
-     if(sexo == 1){ 
-         tiposexo = "Hombre"; 
-     }else 
-     { 
-         tiposexo = "Mujer"; 
-     }    
-      
-     printf("El sexo es: %s ",-  tiposexo );
 
-      
-     return 0; 
- }