User
Pass
2FA
 
 

Pointeri de matrice

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message910
katy_naritza

[Creep]



Status: Offline
(since 02-01-2022 12:01)
Joined: 11 Feb 2012
Posts: 912, Topics: 83
Location: Romania

Reputation: 193.4
Votes: 59

        Battletag: postrow.ID_BATTLE_NET} 
Post Posted: 26-01-2015, 01:19:33 | Translate post to: ... (Click for more languages)

Daca intializez o matrice asa:
int *p;
int i,j,n;
scanf("%d",&n);
if((p=(int*)malloc(n*sizeof(int)))==NULL){
printf("Memorie insuficienta.");
exit(1);
cum fac referinta la un element al matricei prin pointer?Gen, cum e la vector *(p+i)?
La ce se refera p[i*4+j] tot in cadrul acestei probleme?
LE: M'am lamurit in cele din urma. Se poate da TC(sorry for missplaced topic).





Fixed!

0 0
  
Back to top
View user's profile Send private message
'ZeNN

[Account disabled]



Status: Offline
(since 01-02-2016 21:37)
Joined: 15 Nov 2014
Posts: 1955, Topics: 556
Location: Lugoj, Timisoara

Reputation: -38.8
Votes: 462

      dnlonfire 
Post Posted: 26-01-2015, 20:14:10 | Translate post to: ... (Click for more languages)

in caz ca mai ai nevoie de exeplicatii , da-mi mie pm si te ajut.
sau @ZeNN , activezi casuta sa-ti raspund cat mai repede.


M/
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 12-02-2025, 05:06:37
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x