Connecting Tech Pros Worldwide Forums | Help | Site Map

extract pointer varibles and memory assignmnets from a c file

Newbie
 
Join Date: Sep 2009
Posts: 1
#1: Sep 18 '09
Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2. void main()
  3. {
  4. int *a,b;
  5. a=&b;
  6. }
  7.  
above c code should be the input. a and b variables are to be printed as follows

output:
pointer variables a
address variable b
a->b

numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,572
#2: Sep 18 '09

re: extract pointer varibles and memory assignmnets from a c file


Quote:

Originally Posted by mithckr View Post

Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2. void main()
  3. {
  4. int *a,b;
  5. a=&b;
  6. }
  7.  
above c code should be the input. a and b variables are to be printed as follows

output:
pointer variables a
address variable b
a->b

First, please use code tags around any code that you place into the forums.

Second, do you have a question that you would like to ask? We would all love to be mind readers, but if you are trying to do something and are having problems, we do not know the issue unless you both ask a question and share the Perl code that you have been working with.

Regards,

Jeff
Reply