I believe this to be correct: *y++ = *(y++)
The precedence table I looked at had ++ above unary *.
I'm having trouble with this *(y++) = 0x1000 due to never seeing anything like it before.
This is what I think it does although I could be wrong.
it sets *y = 0x1000 therefore...
For the first question I got:
y=0x1001 and x= 0x1000
My logic for this was y is pointing to the address of x and since y++ is post increment it sets x to 0x1000 and then y increments and becomes 0x1001.Also these questions are from a sample final exam for which we haven't been given the...
What is the value of x after the following C code sequence?
Discuss the value of y.
int x = 0x1201, *y;
y = &x;
*y++ = 0x1000;
Analyse the following code and provide the values of the elements of the array x
after the code is executed.
int x[] =...
Homework Statement
Calculate the width of the space charge region in a pn junction when a reverse biased voltage is applied. Consider a silicon pn junction at T=300K with doping concentrations of Na=10^16 cm^-3 and Nd=10^15 cm-3. Assume that Ni=1.5*10^10 cm-3 and VR=5V
Homework Equations...
The notes have this formula for calculating the sin and cos term however, I am not sure which details are x, R and l from the question. I guess it doesn't hurt to hazard a guess, would l be the length, R the radius (with diameter given in this case) and x be the distance of point P from the...
Homework Statement
A 10 cm long, 1 cm diameter solenoid contains 500 turns of wire. A current that varies as I = 5Sin(100πt) Amps flows through the solenoid wire. Calculate the magnitude of the magnetic flux at the centre of the solenoid as a function of time using equation (1). Compare this...