Being the c newbie that I'm I have a question about changing the value of an variable in an if statement. Since I only have experience from matlab where this works like a charm I wonder if it's the same for C. I'll give an example if you don't understand what i mean.
This will give a=6 right? I don't need to use pointers to change the value with an if statment?Code:int w = 1; int b = 2; int c = 3; if(w==1){ b=b+1; } int a = b+c;