Jump to content

EA Canada

Featured Replies

Let's see here:

 

ascii-full.gif

 

--edit--

 

What's the character behind the pole?

 

is it the '\0' symbol?

Yeah, in C the end of a string is a NUL.

 

If they want to attract the right kind of people, that ad is a good start :)

Wow, EA makes their games in C/C++?

dave said in post #8 :

All C/C++ strings are null terminated, which just means they have the ascii code 0 at the end of them.

 

Yeah, in the pic, it looks like a 0. But when I did C programming, i had to use the \0 symbol.

 

Afterall, using 0 would copy 0 into the string right?

Wouldn't using a slash escape the reserved character zero, allowing it to appear in the string?

It is a zero, but it's a decimal zero.

 

If you look at the table above, 0 in decimal is the charachter NUL in ASCII, which is represented as '\0' in C source.

 

char a = 0;

 

and

 

char b = '\0';

 

are the same thing.

LuTze said in post #11 :

It is a zero, but it's a decimal zero.

 

If you look at the table above, 0 in decimal is the charachter NUL in ASCII, which is represented as '\0' in C source.

 

char a = 0;

 

and

 

char b = '\0';

 

are the same thing.

 

doh!

 

pa-choing!

NSX, since they`re "Now Hiring" people, go for it dude!

 

89,111,117,32,110,111,32,87,111,114,115,101,32,32,58,41,0

YT2095 said in post #14 :

NSX, since they`re "Now Hiring" people, go for it dude!

 

89,111,117,32,110,111,32,87,111,114,115,101,32,32,58,41,0

 

huh?

 

Much easier compiling in C than converting. lol

 

#include <stdio.h>

 

int

main (void)

 

{

char str[] = {89, 111, 117, 32, 110, 111, 32, 87, 111, 114, 115, 101, 32, 32, 58, 41, '\0'};

 

printf ("%s", str);

 

return(0);

 

}

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.