Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/04/2011, 01:58
fightmx
 
Fecha de Ingreso: febrero-2003
Ubicación: D.F.
Mensajes: 163
Antigüedad: 21 años, 2 meses
Puntos: 22
Respuesta: error de sintaxis

Código C:
Ver original
  1. #include <stdio.h>
  2.  
  3. void print(const char** palabras, int size){
  4.     int nword = 0;
  5.     while(size--)printf("word[%i] = %s\n", nword++, *palabras++);
  6. }
  7.  
  8.  
  9. int main(){
  10.     const char* hola[] = {"Soy", "eMMA" ,"Este","ES","UN","EjErCiCiO","PAAR","FAmILIaRIZAR SE","CON","EL","manejo","DE","CADENAS"};
  11.     print(hola, sizeof hola / sizeof hola[0]);
  12.     return 0;
  13. }