IT Placement Papers Programming C
This category contains C Interview Questions and Answers |
How can I pass constant values to functions which accept structure arguments?
|
|
|
|
|
C has no way of generating anonymous structure values. You will
have to use a temporary structure variable or a little structure-
building function. (gcc provides structure constants as an
extension, and the mechanism will probably be added to a future
revision of the C Standard.)
Only registered users can write comments. Please login or register.
|