LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 04-06-2005, 01:28 AM   #1
kapsikum
Member
 
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
mehuljv
Member
 
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.

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

Original Poster
Rep: Reputation: 16
thanx mehul
 
Old 04-06-2005, 02:12 AM   #4
Nad0xFF
Member
 
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)
 
  


Reply


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 (0.0.0.0) 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
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration