![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
|
|
Themen-Optionen | Ansicht |
|
|
#4 |
|
Veteran
![]() |
Code:
void GetCorrectTime1( char str[][])
{
printf ("%s\n", *str);
strcpy(*str,"11:11:11");
}
void GetCorrectTime2( char str[])
{
printf ("%s\n", str);
strcpy(str, "22:22:22");
}
main ()
{
char FormatedTime[] = "00:00:00";
GetCorrectTime1(&FormatedTime);
printf ("%s\n", FormatedTime);
GetCorrectTime2(FormatedTime);
printf ("%s\n", FormatedTime);
}
____________________________________
religion is a virus from outer space |
|
|
|
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|