Can you briefly describe what the function below does in plain English (word limit: 100)? int data; if(node){ if(node->d

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Can you briefly describe what the function below does in plain English (word limit: 100)? int data; if(node){ if(node->d

Post by correctanswer »

Can you briefly describe what the function below does in plain
English (word limit: 100)?
int data;
if(node){
if(node->data > 0)
return func(node->next, number) - node->data;
else if(node->data < 0)
return func(node->next, number) + node->data;
else
return func(node->next, number + node->data) + number;
}
Can You Briefly Describe What The Function Below Does In Plain English Word Limit 100 Int Data If Node If Node D 1
Can You Briefly Describe What The Function Below Does In Plain English Word Limit 100 Int Data If Node If Node D 1 (69.8 KiB) Viewed 63 times
Can you briefly describe what the function below does in plain English (word limit: 100)? class Node { public: int data; Node* next; }; int func (Node* node, int number) { if (node) { if (node->data > 0) return func (node->next, number) node->data; else if (node->data < 0) return func (node->next, number) +node->data; else return func (node->next, number + node->data) + number; } } return 0;
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply