[ create a new paste ] login | about

Link: http://codepad.org/dXFSq7jA    [ raw code | output | fork ]

C, pasted on Jul 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const int bufferSize = 32;

void first()
{
  char buffer[bufferSize];
  memset( buffer, 'A', sizeof( buffer ) );
}

void second()
{
  char buffer[bufferSize];
  memset( buffer, 'B', bufferSize / 2 );
  printf( "%s", buffer );
}

int main()
{
  first();
  second();
}


Output:
1
BBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA�q�Ԏ��(er� dr��s���s�2r�(�s�


Create a new paste based on this one


Comments: