wat s the meaning of (int *)p +4;

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array name a pointer?

601


What is methods in c?

637


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

649


Write a program to check prime number in c programming?

594


What is extern keyword in c?

639






How is a null pointer different from a dangling pointer?

555


When should the register modifier be used? Does it really help?

607


What is a double c?

588


Can we assign string to char pointer?

583


What is advantage of pointer in c?

687


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1259


Write a program to swap two numbers without using the third variable?

591


What is a function in c?

569


Is c call by value?

600


cavium networks written test pattern ..

3592