[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

SV: [CPROG] forskel på int og float/double pointere?



Nej, i princippet er der ingen forskel. Hvad sker der hvis du skriver:
	(*pDouble) = (double)0.0;

/peter

-----Oprindelig meddelelse-----
Fra: root [mailto:sslug@sslug
Sendt: 5. juli 2001 17:58
Til: sslug@sslug
Emne: [CPROG] forskel på int og float/double pointere?


Er der principiel forskel på pointere til int og til float/double?

int* pInt;
(*pInt) = 4;

går uden problemer. Men :

double* pDouble;
(*pDouble) = 0.0;

o.l. giver segmentation fault. Hvad sker der?


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *