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 |
Can one function call another?
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
What is the use of a semicolon (;) at the end of every program statement?
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration
12 Answers HCL, Infosys, Microsoft,
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Tell me when would you use a pointer to a function?
who is the editor of 'pokemon'?
Can anyone tell what is stack overflow? what precaution we should take?
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
How we can write a value to an address using macro..?
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
What are the back slash character constants or escape sequence charactersavailable in c?