| | |
pass a structure as reference parameter.
![]() |
plz explain how to do this the proper way.
am getting warning: 'struct names' declared inside parameter list
C Syntax (Toggle Plain Text)
main.c ===== struct names{ // definitions ----- ---- ---- } struct names x; function1(&x); file2.c ====== function1(struct names *x){ ---- ---- ---- }
am getting warning: 'struct names' declared inside parameter list
I guess it's
or put it this way
c Syntax (Toggle Plain Text)
struct names{ // .... } x;
or put it this way
c Syntax (Toggle Plain Text)
struct names{ // ... }; struct names x;
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
You're missing a semi-colon after defining the struct.
Should be:
Should be:
struct names{ // definitions
-----
----
----
};![]() |
Similar Threads
- Weather Program (C++)
- Problems in Address book programming (C++)
- but.. (C)
- urgent help ith c++ program (C++)
- has anyone done this assignment i have a lot of errors need to compare (C++)
- urgent help with c++ function access(/cpp) (C++)
- What relation does **indirection operator have with Multidimensional Arrays (C++)
- help! a little malfunction in my program (C)
Other Threads in the C Forum
- Previous Thread: how do i right align my data?
- Next Thread: is fmod() recieving overflow?
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft motherboard mqqueue mysql number odf open opensource owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling scripting segmentationfault send sequential shape socket socketprograming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






