int i1,i2; in t*p1,*p2; p1=&p1; p2=&p2;
Address + Number = Address (Next Address) Address – Number = Address(pre Address) Address ++=Address(Next address) Address--=Address(Pre Address) ++ Address= Address(Next Address) --Address = Address(Pre address)
Address – Address = Number(No.of elements) = size diff/sizeof(datatype) int*p1=(int*)100; int*p2=(int*)200; p2-p1=50 200-100 ------- > 100/size of(int)
Address + Address=Illegal. Address * Address= illegal Address/Address= illegal Address%Address=illegal
We can use relational operator and conditional operator b/w two pointers(<,>,<=,>=,==,!=,?!) Address > Address = T/F Address > = Address = T/F
We can’t perform bitwise operation b/w two pointers like Address & Address = illegal Address | Address=Illegal Address ^ Address = illegal ~ Address=illegal
We can find the size of a pointer using the size of the operator.
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.