Click here to Skip to main content
15,921,179 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is the meaning of this expression int *(*table())[30]; Pin
Ayman Mashal2-Jan-07 4:31
Ayman Mashal2-Jan-07 4:31 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
David Crow2-Jan-07 8:16
David Crow2-Jan-07 8:16 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
werpa2-Jan-07 8:50
werpa2-Jan-07 8:50 
GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
John R. Shaw2-Jan-07 10:26
John R. Shaw2-Jan-07 10:26 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
Michael Dunn2-Jan-07 15:04
sitebuilderMichael Dunn2-Jan-07 15:04 
GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
Mark Salsbery2-Jan-07 15:17
Mark Salsbery2-Jan-07 15:17 
AnswerRe: what is the meaning of this expression int *(*table())[30]; Pin
Ayman Mashal3-Jan-07 20:12
Ayman Mashal3-Jan-07 20:12 
GeneralRe: what is the meaning of this expression int *(*table())[30]; Pin
werpa5-Jan-07 8:46
werpa5-Jan-07 8:46 
Ayman,

Ultimately the writer of the function chose to have the function return this type. C and C++ compilers then enforce type safety forcing you to interpret this complex type.

Certainly the writer could have had the function returned an int pointer. Doing so, however, probably did not give the function caller what the function writer predicted the caller would want.

If you are the function caller, you probably know best if the writer correctly predicted what you wanted. If the writer was wrong, maybe you want to rewrite the function or wrap the function to return what you want?


Questionchar and int mixed array repeat output ! Pin
davvid2-Jan-07 4:10
davvid2-Jan-07 4:10 
AnswerRe: char and int mixed array repeat output ! Pin
CPallini2-Jan-07 4:28
mveCPallini2-Jan-07 4:28 
AnswerRe: char and int mixed array repeat output ! Pin
John R. Shaw2-Jan-07 11:14
John R. Shaw2-Jan-07 11:14 
QuestionDetecting GUI events Pin
narada1502-Jan-07 3:08
narada1502-Jan-07 3:08 
AnswerRe: Detecting GUI events Pin
CPallini2-Jan-07 3:24
mveCPallini2-Jan-07 3:24 
GeneralRe: Detecting GUI events Pin
narada1503-Jan-07 8:48
narada1503-Jan-07 8:48 
QuestionMFC Message map routing question Pin
Arris742-Jan-07 2:42
Arris742-Jan-07 2:42 
AnswerRe: MFC Message map routing question Pin
S Douglas2-Jan-07 23:24
professionalS Douglas2-Jan-07 23:24 
GeneralRe: MFC Message map routing question Pin
Arris743-Jan-07 7:32
Arris743-Jan-07 7:32 
QuestionConvert project VC++6.0 to VC++.Net Pin
Atul232-Jan-07 2:20
Atul232-Jan-07 2:20 
AnswerRe: Convert project VC++6.0 to VC++.Net Pin
Cristian Amarie2-Jan-07 6:41
Cristian Amarie2-Jan-07 6:41 
AnswerRe: Convert project VC++6.0 to VC++.Net [modified] Pin
S Douglas2-Jan-07 23:32
professionalS Douglas2-Jan-07 23:32 
QuestionHow to Invoke Resource-Only DLL Dialogs Pin
Pradeep.Reddy2-Jan-07 1:29
Pradeep.Reddy2-Jan-07 1:29 
QuestionRe: How to Invoke Resource-Only DLL Dialogs Pin
prasad_som2-Jan-07 1:35
prasad_som2-Jan-07 1:35 
AnswerRe: How to Invoke Resource-Only DLL Dialogs Pin
Pradeep.Reddy3-Jan-07 7:17
Pradeep.Reddy3-Jan-07 7:17 
AnswerRe: How to Invoke Resource-Only DLL Dialogs Pin
prasad_som3-Jan-07 19:03
prasad_som3-Jan-07 19:03 
AnswerRe: How to Invoke Resource-Only DLL Dialogs Pin
Johan Pretorius2-Jan-07 2:42
Johan Pretorius2-Jan-07 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.