CFanatic

Go Back   CFanatic > Programming > C Programming

Join CFanatic Forum Now

how to go through the pointers topic posted under C Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 04:31 AM
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
satty is on a distinguished road
| More
how to go through the pointers

hello!
I am not able to follow how should i like the same thing in pointers:

int a[10], b= 1, c; // initialization
a[++b]=c; // increment

If I want to write the same thing in pointer, then what would it be like

int *a, b =1, c;
a = (int*) calloc(10, sizeof(int));
//how would the third line be written ??????
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pointers small confusion gaurav_13191 C Programming 1 09-05-2010 08:47 AM
Pointers program using Dynamic Memory Allocation KingJames603 C Programming 0 08-28-2010 03:11 AM
C++ string length error using pointers manugupt1 C Programming 3 12-03-2009 05:37 AM
Virtual Functions and pointers Spogliani C++ Programming 1 07-15-2008 01:58 AM
Reg Fucntion Pointers sowmi C++ Programming 0 06-27-2007 10:27 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 02:23 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board