this is my quiz Iam taking now need quick answers

this is my quiz Iam taking now need quick answers thanksQuestion 1Unions…permit different memory spaces to hold the same valuepermit the same memory space to hold different typespermit different memory spaces to hold the same typepermit the same memory space to hold different values simultaneously10 points Question 2 #define COMBINE(x,y,z) ((x)>(z)?(y+x):(y-x))What is the output of the following statement: printf(“%d”,COMBINE(4,6,1));2-251010 points (Extra Credit) Question 3What is the purpose of enumerationDefine meaningful names for integer valuesExpress real numbers with distinct nameAssign unique names to variablesAssociate integer values with unqiue variables10 points Question 4#define MAX(x,y) ((x)>(y)?(x):(y))This is an example of…Switch macroBasic macroConditional macroParametrized macro10 points Question 5Preprocessor directives always begin with…~*#%10 points Question 6With preprocessor directives the preprocessor…acts on the directives during compilationacts on the directives and removes the lines before compilationacts on the directives in place of compilationacts on the directives after compilation15 points Question 7What is the output of the following codeunion{ int di; double dd;} my_uid;int main(){ my_uid.di = 52; my_uid.dd = 12.98; printf (“%dn”, my_uid.di); return 0;}12.98-1889785610The output is unpredictable5210 points Question 8What is the output of the following codetypedef enum{ red = 2, blue = 4, green, yellow = 8} color_t;int main ( void ){ color_t cur_color = green; printf (“%dn”, cur_color); return 0;}570unknown (could be any integer)15 points Question 9Why is it a good idea to use structs with unionsTo help indicate the current type of the stored dataTo provide a mechanism for changing the content of the unionTo prevent buffer overflowsTo ensure that syntax errors do not ocurr10 points Question 10Enumerations are always…booleanscharactersintegersfloating point numbers

 

CLICK HERE TO ORDER A SIMILAR PAPER

We pride ourselves in writing quality essays

CLICK HERE TO CONTACT US

Lets Start Working

Plagiarism Free

We use anti-plagiarism software to ensure you get high-quality, unique papers. Besides, our writers have a zero plagiarism mentality

On Time Delivery

Your essay will be delivered strictly within the deadline.  If you have an urgent order, we can do it!

Money Back Guarantee

We offer warranty service, including free revisions, and a right to request a refund incase your expectations are not met!

THE BEST PAPER WRITER HELPER

Our Advantage

  • Say “NO” to plagiarism – FREE plagiarism report as an addition to your paper
  • The lowest prices that fit excellent quality
  • Authorship – you are the one who possesses the paper. We DO NOT re-sale or re-use any of them.

OUR PAPER WRITER HELPER GOODIES

Our Freebies

  • Free Cover Page
  • Free Revisions
  • Free Reference Page
  • Free 24/7 support

Pin It on Pinterest

Share This