473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

doubt in declaration

rampraveen
what is the use of below syntax.i got a program(convert numbers to words) which is having this syntax ...............
void pw(long,char[]);
Apr 8 '10 #1

✓ answered by akdemirc

it is the same with the below which declares a function taking a first parameter of type long and a second one of type array of char:

void pw(long, char*)

2 1205
it is the same with the below which declares a function taking a first parameter of type long and a second one of type array of char:

void pw(long, char*)
Apr 8 '10 #2
Banfa
9,065 Expert Mod 8TB
@akdemirc
Not quite the type of the second parameter is not array of char it is pointer to char.
Apr 8 '10 #3

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

Similar topics

5
by: NG | last post by:
Hi all, can anybody explain me the following code snippet. typedef void * (*VP)(char*); VP vp; thanks in advance NG
1
by: Srini | last post by:
I was reading the "Exceptional C++" of Herb Sutter. In an example, he mentions the following. // In some library header: namespace N { class C{}; } int operator+(int i, N::C) { return i+1; }...
22
by: srivatsan_b | last post by:
Hi, Can somebody explain whether an explicit typecast is mandatory while calling memset function for a structure? like in the following code snapshot..... struct some_structure x;...
8
by: raajagopal.v | last post by:
i am a beginner to comp sci field , i am a student , when i came to the storage class specifiers area i got this doubt that is "i want to store a variable in the register and that must be of static...
5
by: edu.mvk | last post by:
Hi Friends, I have subscribed to this group recently. I have a doubt in templates in C++ A fraction of code given in "The C++ Programming Language" -By B.Stroustrup is as follows : ...
26
by: Vashna | last post by:
Hi Group, I have a doubt about register variables. I know that if we have a variable used very frequently in a function, then provided we never apply the & function to it, we can define it as...
7
by: new to c | last post by:
Hi! I write the 2 codes int i; i = sizeof(long int); printf("%i", i); i = sizeof(int long); printf("%i", i);
1
by: mthread | last post by:
Hi, I came across this prototype declaration virtual const char* what() const throw() I would like to know what is the purpose of last two words 'const throw()'
11
by: whirlwindkevin | last post by:
I saw a program source code in which a variable is defined in a header file and that header file is included in 2 different C files.When i compile and link the files no error is being thrown.How is...
7
by: Anarki | last post by:
int main(a,b,c,d,e,f,g) { printf("Size of a = %d\nSize of b =%d",sizeof(a),sizeof(b)); return 0; } The above program perfectly compiles in cygwin using gcc and my questions are
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.