What about the pointers in C confuses people????

4 replies
People confuse because they avoid using pointers in their code.Pointers deal with address.
why??
#confuses #people #pointers
Avatar of Unregistered
  • Profile picture of the author Wayne Zimmerman
    Don't know
    {{ DiscussionBoard.errors[11238666].message }}
  • Profile picture of the author Angela Leonard
    People confuse because they avoid using pointers in their code.Pointers deal with address
    {{ DiscussionBoard.errors[11242642].message }}
  • Profile picture of the author Alexis Wilke
    You should at least use C++, not C... but pointers are confusing in all sorts of ways. Your question is not clear. What are you asking about exactly? Are you confused by pointers yourselves?

    In C when you declare an array or write a string (i.e. "Hello World!") you create pointers already... Actually, when you call a function, you use a function pointer. You first stack your IP (Instruction Pointer) and jump to that function's entry point. Once the function returns, it pops the return IP from the stack and jumps to it (the RTE instruction does that automatically.)

    More confused now? :-)
    {{ DiscussionBoard.errors[11245104].message }}
  • Profile picture of the author techugo
    Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily with pointers, and other tasks, Typically,in a Modern introductory programming curriculum,the focus is on control structures,functions,and a very abstract notion of a variable.the notion of pointers comes much later,after the student has already built a mental model that excludes such concepts..
    {{ DiscussionBoard.errors[11245193].message }}
Avatar of Unregistered

Trending Topics