Hi. I am a complete newb and need help. I am trying to get this so that if the number stored as gendernum is less then or equal to 50 to store girl under the variable gender. And if gendernum is over 50 to store boy under the variable gender. This is the code that I using:
i
But when I use the program i get weird charcters displayed instead. What should i do to correct this?Code:f (gendernum<=50) { char gender[5]="girl"; } if (gendernum>50) { char gender[5]="boy"; }