I don't know why you included int i = 1; you are not using i in this code.
%x represent hex means your output will be in hexadecimal notation.
The << operator shifts its first operand left by a number of bits given by its second operand
-1 << 1 will make 11111111 into 11111110 which represent -2
-1 is represented in Hex as FFFF your output -2 in hex will be FFFE
I not understood this concept i is not printed no out put on the screen i is never used for the program
if u use turboc or bc u will get the 0 is an output. if u execute in gcc. you will get -2 as an output.
operation is convert the 1 as binary format ie 00000001. but value is -1 so use one's complement ie 11111110. then use the left shift operator at once. so will become 11111100. so this is ouput binary format. if u printed as integer means again convert one's complement so will become -2. if u printed as hexa decimal format fffffe.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...