Can I pass constant values to functions which accept structure
arguments?
Answers were Sorted based on User's Feedback
Answer / guest
No. C has no way of generating anonymous structure values.
| Is This Answer Correct ? | 2 Yes | 1 No |
What is table lookup in c?
When can a far pointer be used?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
How do you print only part of a string?
What does %2f mean in c?
Convert the following expression to postfix and prefix (A+B) * (D-C)
Explain what are the standard predefined macros?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What are the data types present in c?
why we shiuld use main keyword in C
Are pointers integer?
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?