Answer Posted / suman halder
within printf statement,f(2+2) i.e f(4) must return a value so that this value could get printed through %d format specifier..
Now,as f(x) is a macro template and macro expansion code for this template is not specified..so,here the situation is like,we are trying to return an integer value from a function which is having a "void" return type..
so,compiler flashes "Expression syntax error"..as during preprocessing macro template can't be replaced by macro expansion...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is abstract data structure in c?
Describe the steps to insert data into a singly linked list.
What is a pointer in c plus plus?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is the difference between fread and fwrite function?
Why ca not I do something like this?
given post order,in order construct the corresponding binary tree
Write a c program to demonstrate character and string constants?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the use of parallelize in spark?
Explain how are portions of a program disabled in demo versions?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Explain how can I right-justify a string?
Explain goto?
What is the purpose of realloc()?