You are here:

C/Query abt pointer

Advertisement


Question
hello sir,

can you please tell me the full meaning of following program. I did not get any point abt these lines.

void print(char i[],int x,int y)
  {
  char far* ptr=(char far*) 0xB8000000+(160*x)+(2*y) ;
  for(int a=0; i[a]!='

Answer
Whatever you have posted is a small and incomplete portion of a bigger code.
Actually, you yourself can try to find out what it is doing.
Compile the code, give different inputs and then see what is the o/p.
By analyzing this, you may get a pattern and that may show up something.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.