2021年3月13日星期六

Sending a dummy variable to a function as a compound literal

Let's say I have the following I'm using to call a function:

Item dummy;  while (!QueueIsEmpty(pq))      DeQueue(pq, &dummy);  

Is there a way to put the dummy parameter into the call itself? Something like:

while (!QueueIsEmpty(pq))      DeQueue(pq, &(Item)NULL);   
https://stackoverflow.com/questions/66619932/sending-a-dummy-variable-to-a-function-as-a-compound-literal March 14, 2021 at 08:32AM

没有评论:

发表评论