hi, denster thank for your program.....i think it shd be can help me, actually my question is write a function lower_to_upper that takes an alphabetic character and returns its upper case value. It will return the original value if an upper case alphabet is passed in( assume the input parameter is an alphabetic character.
i have a lot of question need to get your advise, if you are free, hope you can teach me coz i just start learning C languages by myself. found that just bought a programming book study quite difficult to understand it.
my question is
1. what is the different bewteen recursion and iteration? (recursion mean that calling itself, right?)
if give you iteration and recursion, which one is preffer?
can u explain to me?
do u have any examples program about recrusion and iteration? i'm not so sure how to different this 2 programs,
2. this question is regarding string.
how we write a function that take three parameters? first two parameters should call string 1 and string 2 and be string, third parameter an integer n. we need to check the first n characters of both strings and return 1 if they are identical, otherwise 0 will be return.
3. Is that has such declaration?
"declare an array of sturcture"
shall i declare like that: struc student_record adcs[40]
**student_record is a structure and adcs is an array name!**