#include <stdio.h>
void dothing(int a, int b[]);
int main()
{
int x = 7, y[] = {11};
dothing(x, y);
printf("%i %i\n", x, y[0]);
return 0;
}
void dothing(int a, int b[])
Type: Posts; User: sKeL`
#include <stdio.h>
void dothing(int a, int b[]);
int main()
{
int x = 7, y[] = {11};
dothing(x, y);
printf("%i %i\n", x, y[0]);
return 0;
}
void dothing(int a, int b[])
ok so ur saying the entire if else statement will all be truncated, and the initial value of y is printed instead?
since all the if statements isn't true and the else statement will be carried out?
sigh, my concept still ain't good.
Sorry, not 1, i thought y-- will be carried out instead so it should be -1 right?
1
for (d = 2; d < p; d++)
if (!(p%d))
isPrime = 0;
what does the '!' in the 'if' statement means?
2. What is printed out by the following poorly indented C code fragment?
1. What is the value in x if y=3 and z=5, and x initially contains 0?
x+=(y<z);
Why is the answer 1?
2. Study the following code fragment. Assuming that n is a non-negative integer....