| | |
pass a structure as reference parameter.
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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?
Views: 1457 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C
* adobe api append array arrays bash binarysearch centimeter char character cm copyanyfile copypdffile createcopyoffile createprocess() csyntax directory drawing dynamic executable execv feet fgets file floatingpointvalidation fork frequency function getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux highest homework i/o ide infiniteloop initialization interest intmain() keyboard kilometer lazy license linked linkedlist linux linuxsegmentationfault list match matrix meter microsoft mqqueue multi mysql oddnumber odf open openwebfoundation pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scheduling segmentationfault send shape single socketprogramming spoonfeeding stack standard strchr string strings student suggestions system test testautomation unix urboc user whythiscodecausesegmentationfault win32api windows.h






