473,473 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hİ everybody,

2 New Member
what is the difference between int *a[20] and int (*a)[20]???????
Apr 28 '07 #1
3 1132
Extremist
94 New Member
what is the difference between int *a[20] and int (*a)[20]???????
Hi there

int *a[20] would mean a pointer to an array of 20 ints

int (*a)[20] would mean an array of 20 pointers to ints
Apr 28 '07 #2
crazyapple
2 New Member
Hi there

int *a[20] would mean a pointer to an array of 20 ints

int (*a)[20] would mean an array of 20 pointers to ints

thank you very muchh
Apr 28 '07 #3
weaknessforcats
9,208 Recognized Expert Moderator Expert
This is not true:
int *a[20] would mean a pointer to an array of 20 ints

int (*a)[20] would mean an array of 20 pointers to ints
The correct meaning is:

int *a[20]; -> a is an array of 20 pointers to int
int (*a)[20]; -> a is a pointer to an array of 20 ints
Apr 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Andrew Clover | last post by:
Evening all, haven't seen much discussion on PEP 304 recently, what's its current status? As I'm currently writing something that also allows configuration of where bytecode files go, I...
17
by: Lonnie Princehouse | last post by:
In short: Is there any way to run Python WITHOUT trying to create .pyc files (or ..pyo) or to have Python not attempt to import the .pyc files it finds? Reason: We have a site-specific...
2
by: Skip Montanaro | last post by:
I updated the patch that supports PEP 304, "Controlling Generation of Bytecode Files" to apply cleanly against current CVS. I've tested it on Mac OS X (straight Unix build only). I'd appreciate...
6
by: Skip Montanaro | last post by:
I wrote PEP 304, "Controlling Generation of Bytecode Files": http://www.python.org/peps/pep-0304.html quite awhile ago. The first version appeared in January 2003 in response to questions...
0
by: RFIDSDK | last post by:
Hello Everybody, I am happy to announce that KeyTone Technologies, Inc. based in Santa Clara, CA has developed a RFID SDK toolkit targeted towards the developer community. This .NET based RFID...
2
by: vijayakumar_gs | last post by:
Hello, We are developing erp model web application using asp.net. we are keeping dataset values in session objects while the pages navigation. within very few minutes the session getting...
1
by: Luis Esteban Valencia | last post by:
Please everybody participate in this question. Hello my applicacion has many layers and classes and I think its well structured. PLease let me know if you disagree and why. 1. I have the user...
2
by: safak112 | last post by:
Hi everybody; I am exporting a table to a new txt file by using MS access 2000. But as you know we can save our export specs, and next time we can call it and can use it once more. But in my...
8
by: Hermann | last post by:
The standard says "The 304 response MUST NOT contain a message-body, and thus is always terminated by the first empty line after the header fields"...
1
by: NevilleDNZ | last post by:
Hi, Apologies first as I am not a unicode expert.... indeed I the details probably totally elude me. Not withstanding: how can I convert a binary string containing UTF-8 binary into a python...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.