wat s the meaning of (int *)p +4;
Answers were Sorted based on User's Feedback
here 'p' must be a void pointer.
here (int*)p means that 'p' is type casted to point to the integer value.
that address is incremented by 4.
thank u
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / kathir
Type casting p to a pointer to integer.If p would have been
p=0x00000004 then this would increase the pointer by 4.
| Is This Answer Correct ? | 6 Yes | 0 No |
What is an endless loop?
what is the output of below int n=10; (n++)++; printf("%d",n);
List the different types of c tokens?
how to get starting address of a running C program
Total of how many functions are available in c?
Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā%cā, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.
1 Answers BladeLogic, Infosys,
WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE GIVEN VALUES
wat are the two methods for swapping two numbers without using temp variable??
pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()
What is a macro, and explain how do you use it?
in linking some of os executables are linking name some of them
What is the difference between abs() and fabs() functions?