hii :)
I've seen alot in (void)func. that at the end of it they put (return;)
why they put it ??what is the logical meaning of it ?? is it the same as (return0;) ??
actually it confused me alot :/
thanks ^_^
shahera.arafat 0 Light Poster
Lerner 582 Nearly a Posting Maven
AndrisP 193 Posting Pro in Training
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
shahera.arafat commented: void print(node*head,int id){ node*p; p=head; while(p!=NULL){ if(p->id==id){ cout<<p->id; return; } p=p->next; } cout<<"node doesn't exist"; } this (return;)here,for what did they put it ?:/ +0
ddanbe 2,724 Professional Procrastinator Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
L7Sqr 227 Practically a Master Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
L7Sqr commented: Good points. I agree with more than not but I have to side with CamelCase and if ( foo ) (I like the separation) +9
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.