View Single Post
Old 04-16-2004, 12:27 AM   #11 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
Code:
#include <stdio.h>

int main(){
  char* hello={"Hello "};
  char* world={"world"};
  char hello_world[50];
  int index_hello=0, index_world=0;
  while(hello[index_hello])
    hello_world[index_hello]=hello[index_hello++];
  while(world[index_world])
    hello_world[index_hello++]=world[index_world++];
  hello_world[index_hello]='\0';
  printf("%s\n", hello_world);
  return 1;
}
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote