Click here to Skip to main content
12,511,383 members (124,934 online)

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsLinux's Not UNIX Pin
Terrence Dorsey22-Jan-13 11:51
staffTerrence Dorsey22-Jan-13 11:51 
NewsSoftRAM in 95 - Memory Optimizer in 2013 Pin
Terrence Dorsey22-Jan-13 11:51
staffTerrence Dorsey22-Jan-13 11:51 
NewsIE8 and XP to cause 'perfect storm' in 2013 Pin
Terrence Dorsey22-Jan-13 11:50
staffTerrence Dorsey22-Jan-13 11:50 
NewsHands on with Microsoft's Surface Pro Pin
Terrence Dorsey22-Jan-13 11:50
staffTerrence Dorsey22-Jan-13 11:50 
NewsFunction Pointer Basics in C++ Pin
Terrence Dorsey21-Jan-13 12:12
staffTerrence Dorsey21-Jan-13 12:12 
GeneralRe: Function Pointer Basics in C++ Pin
AspDotNetDev21-Jan-13 12:17
protectorAspDotNetDev21-Jan-13 12:17 
GeneralRe: Function Pointer Basics in C++ Pin
Brisingr Aerowing21-Jan-13 12:41
memberBrisingr Aerowing21-Jan-13 12:41 
GeneralRe: Function Pointer Basics in C++ Pin
VentsyV21-Jan-13 17:58
memberVentsyV21-Jan-13 17:58 
I've asked this question during interviews. Usually Java programmers are really confused... I don't understand why some schools would teach Java instead of C/C++? Obviously C is the language of real programmers... Laugh | :laugh:

Ok enough rant-ing and onto the question:

1. Copying by values vs copying by reference. Obviously passing a pointer to something is much more efficient than doing actual deep copy.
2. All high level languages do is hide the pointers from you, but anytime you index an array pointer arithmetic is being done in the background. Back in the day the stl containers were not available and pointer arithmetic was being used as a iterator of sorts. It still can be used to deconstruct binary memory into objects (perhaps when accessing shared memory created by an application written in some arcane language).
3. Function pointers can be used to simulate polymorphic behavior in a procedural language (like C or Fortran).
4. Most important in my mind is the fact that if you understand pointers and memory, you'll be able to write better code. You'll be able to do your own memory management which could be more efficient.
GeneralRe: Function Pointer Basics in C++ Pin
Dan Neely22-Jan-13 9:05
memberDan Neely22-Jan-13 9:05 
NewsSnoop – Firebug for WPF applications Pin
Terrence Dorsey21-Jan-13 12:12
staffTerrence Dorsey21-Jan-13 12:12 
NewsGetting Too Cute with C# Yield Return Pin
Terrence Dorsey21-Jan-13 12:11
staffTerrence Dorsey21-Jan-13 12:11 
GeneralRe: Getting Too Cute with C# Yield Return Pin
PIEBALDconsult21-Jan-13 15:34
memberPIEBALDconsult21-Jan-13 15:34 
GeneralRe: Getting Too Cute with C# Yield Return Pin
Ranjan.D21-Jan-13 15:45
memberRanjan.D21-Jan-13 15:45 
NewsC and C++ Aren’t Future Proof Pin
Terrence Dorsey21-Jan-13 12:11
staffTerrence Dorsey21-Jan-13 12:11 
GeneralRe: C and C++ Aren’t Future Proof Pin
PIEBALDconsult21-Jan-13 17:32
memberPIEBALDconsult21-Jan-13 17:32 
NewsWhen Haskell Is Not faster than C Pin
Terrence Dorsey21-Jan-13 12:10
staffTerrence Dorsey21-Jan-13 12:10 
NewsMasterminds of Programming Pin
Terrence Dorsey21-Jan-13 10:46
staffTerrence Dorsey21-Jan-13 10:46 
NewsIf Carpenters Were Hired Like Programmers Pin
Terrence Dorsey21-Jan-13 10:45
staffTerrence Dorsey21-Jan-13 10:45 
GeneralRe: If Carpenters Were Hired Like Programmers Pin
AspDotNetDev21-Jan-13 11:31
protectorAspDotNetDev21-Jan-13 11:31 
GeneralRe: If Carpenters Were Hired Like Programmers Pin
Ranjan.D21-Jan-13 13:13
memberRanjan.D21-Jan-13 13:13 
GeneralRe: If Carpenters Were Hired Like Programmers Pin
GeekforChrist21-Jan-13 14:06
memberGeekforChrist21-Jan-13 14:06 
NewsHow to kill Java dead, dead, dead Pin
Terrence Dorsey21-Jan-13 10:45
staffTerrence Dorsey21-Jan-13 10:45 
GeneralRe: How to kill Java dead, dead, dead Pin
lewax0021-Jan-13 11:23
memberlewax0021-Jan-13 11:23 
GeneralRe: How to kill Java dead, dead, dead Pin
Dan Neely22-Jan-13 3:18
memberDan Neely22-Jan-13 3:18 
NewsPupil expelled from Montreal college after finding ‘sloppy coding’ that compromised security Pin
Terrence Dorsey21-Jan-13 10:44
staffTerrence Dorsey21-Jan-13 10:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 30 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid