darkston3e Posted February 12, 2012 Report Share Posted February 12, 2012 Ce ar trebuii sa printeze:[COLOR="#808080"]#include[/COLOR] [COLOR="#A52A2A"]<stdio.h>[/COLOR][COLOR="#0000FF"]char[/COLOR] *c[]={ [COLOR="#800000"]"ENTER"[/COLOR], [COLOR="#800000"]"NEW"[/COLOR], [COLOR="#800000"]"POINT"[/COLOR], [COLOR="#800000"]"FIRST"[/COLOR]};[COLOR="#0000FF"]char[/COLOR] **cp[]={c+3,c+2,c+1,c};[COLOR="#0000FF"]char[/COLOR] ***cpp=cp;[COLOR="#0000FF"]int[/COLOR] main([COLOR="#0000FF"]void[/COLOR]){ printf("[COLOR="#A52A2A"]%s[/COLOR]",**++cpp); printf("[COLOR="#A52A2A"]%s[/COLOR] ",*--*++cpp+3); printf("[COLOR="#A52A2A"]%s[/COLOR]",*cpp[-2]+3); printf("[COLOR="#A52A2A"]%s\n[/COLOR]",cpp[-1][-1]+1); [COLOR="#0000FF"]return[/COLOR] 0;}Dark. Quote Link to comment Share on other sites More sharing options...
spance2life Posted February 13, 2012 Report Share Posted February 13, 2012 Pointer stew Quote Link to comment Share on other sites More sharing options...
darkston3e Posted February 13, 2012 Author Report Share Posted February 13, 2012 Pointer stewBravo Quote Link to comment Share on other sites More sharing options...
DiP Posted February 13, 2012 Report Share Posted February 13, 2012 E o diferenta intre C si C++.Lumea incurca tot timpul cele doua limbaje.Curios este atunci cand cineva care foloseste C spune C++... Quote Link to comment Share on other sites More sharing options...
spance2life Posted February 16, 2012 Report Share Posted February 16, 2012 Diferenta nu e tare mare, sa zicem asa ca o idee C e cumva mai brut fata de C++. C++ poate fii mult optimizabil, dar pentru maximum de eficienta si performanta este C, difrenta intre ele nu e imensa. Ex. pentru a afisa ceva in C de folosesti de functia printf() din stdio.h, iar in C++ de instructiunea cout din iostream.h. Quote Link to comment Share on other sites More sharing options...