hello everyone....
sorry, i have a question ?
is it possible to declare a variable in types of string ? if it is then , how??
thank you!
This is a discussion on cprogramming within the C Programming forums, part of the General Programming Boards category; hello everyone.... sorry, i have a question ? is it possible to declare a variable in types of string ? ...
hello everyone....
sorry, i have a question ?
is it possible to declare a variable in types of string ? if it is then , how??
thank you!
char something[] = "hello!"
Last edited by Epy; 11-22-2009 at 11:04 AM. Reason: brainfart
-Jake
Hazudra Fodder
or
char *s = "hui";
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
Try this:Maybe you will learn something.Code:char string[4]; strcpy(string, "This is King Arthur");