I know that a[0] is first element of array
I have need for something like this:
a[5] = {9,9,9,9,9,9}
+
b[5] = {8,8,8,8,8,8}
=
c[5+1] = {1,8,8,8,8,8,7}
Type: Posts; User: miroslavgojic
I know that a[0] is first element of array
I have need for something like this:
a[5] = {9,9,9,9,9,9}
+
b[5] = {8,8,8,8,8,8}
=
c[5+1] = {1,8,8,8,8,8,7}
On beginning I define two arrays
a[5];
b[5];
after this I need next array C
c[5];
but when I have c[5] = a[5] + b[5]
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main(void)
{
int a;
a=5;
If I use %p instead of %d I get my address
but
How this work on Windows with %d and on Linux no accept %d
my address have format: 0xbfe2ea54
this is hexadecimal
can I use than %x or %X
ADD to orginal post
I have gcc --version
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 ....
I tray to use %f, and %lo but errors are not resolved
What to use insted %d
sizeof(int) = 4
I have this code:
#include <stdio.h>
main()
{