ok at least tell me what does *(y+i) mean if y[0]=0 and i=2
Clues plzzzz
Type: Posts; User: zer0_r00t
ok at least tell me what does *(y+i) mean if y[0]=0 and i=2
Clues plzzzz
I'm lost man :(
if *y = y[0] why does this give me 1 instead of 2:
#include <stdio.h>
int main()
{
int x[5] = {4,3,1,2,0};
the full code:
#include <stdio.h>
int main()
{
int x[] = {4,3,1,2,0};
omg thank you so much!
x[i] = *(x+*(y+1))
^^^ what does this mean?
Tried. Still gives me the output of x instead of result
Edit:
/* A simple program in which the user picks 2 numbers and does mathematical operation ( +, -, * or / ) */
#include <stdio.h>
#include <stdlib.h>
OK forget using char.
Even if I use int, it ALWAYS gives me the the value of x as the output
/* A simple program in which the user picks 2 numbers and does mathematical operation ( +, -, * or /...
Pls help
Thank you
/* A simple program in which the user picks 2 numbers and does mathematical operation ( +, -, * or / ) */
#include <stdio.h>
#include <stdlib.h>
Errors:
mingw32-gcc.exe -c C:\c\gender.c -o C:\c\gender.oC:\c\gender.c: In function 'main':
C:\c\gender.c:9:5: error: too many arguments to function 'getchar'
In file included from...
Hello. Noob here. Started programming yesterday. LEL
How do I write a program that'll interpret "M" and "F" inputs and print a "you're a guy" or "you're a gurl" message?
#include <stdio.h>...