Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


LinkBack Search this Thread
Old 04-06-2005, 01:28 AM   #1
Registered: Mar 2005
Location: INDIA
Posts: 79

Rep: Reputation: 16
the c declaration

what does this declaration do:

struct linked *(* new)(int);
Old 04-06-2005, 01:43 AM   #2
Registered: Nov 2004
Posts: 72

Rep: Reputation: 15
what does this declaration do:

struct linked *(* new)(int);

Ans: It declares new as a function pointer which takes an integer argument and returns pointer to struct linked.

Old 04-06-2005, 01:56 AM   #3
Registered: Mar 2005
Location: INDIA
Posts: 79

Original Poster
Rep: Reputation: 16
thanx mehul
Old 04-06-2005, 02:12 AM   #4
Registered: Apr 2005
Location: Russia, Saint-Petersburg
Distribution: Slackware 10
Posts: 109

Rep: Reputation: 15
In C++ thatīll make an error! Be careful (new identifier)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No subnet declaration for restart ( changlinn Linux - Networking 11 07-16-2013 09:09 PM
declaration does not declare anything tristanm Programming 5 10-24-2005 04:00 PM
C Global Declaration Aju Programming 3 09-29-2005 04:21 AM
char * declaration in c; alaios Programming 19 09-14-2005 09:50 PM
How to understand the declaration? Xiangbuilder Programming 8 09-13-2003 04:49 AM

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration