GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Consider the following piece of C/C++ code: int a = 2, b = 7…

Consider the following piece of C/C++ code: int a = 2, b = 7, c = 3;int *p = &a , *q = &c ;*p *= b*(*q); The value of the variable a after the previous code is executed will be:

Read Details

Consider the following function header that receives the arr…

Consider the following function header that receives the array of float named grades: float getGrade(float grades[]) Write a command inside this function that calculates the size of the array grades inside the integer variable m:

Read Details

The following are incorrect statements regarding data type c…

The following are incorrect statements regarding data type conversions in C/C++, except:

Read Details

Write a for-loop to print all integer numbers between 63 to…

Write a for-loop to print all integer numbers between 63 to 75 , while preventing out of bound errors:

Read Details

The following C/C++ code does not compile. Describe what cou…

The following C/C++ code does not compile. Describe what could be the problem. int main() { int a = 2 , h= 10; printf(“The volume of the cylinder is %d\n”,2*PI*a*h); return 0; }

Read Details

The following are incorrect statements regarding C/C++ chara…

The following are incorrect statements regarding C/C++ characters, except:

Read Details

The following sentence will convert the signed integer varia…

The following sentence will convert the signed integer variable sInt into an unsigned integer. unsigned int uInt =(unsigned int) sInt; Mention the condition(s) that must be checked for the code to be secure before this previous command is executed.

Read Details

Write a set of C conditional statements that will print “Too…

Write a set of C conditional statements that will print “Too High” if the value of an integer variable height is bigger than 3, print “Normal” if the value of height is bigger than 2, but smaller than or equal to 3, or print “Too Low” otherwise.

Read Details

The following C/C++ code does not compile. Describe what cou…

The following C/C++ code does not compile. Describe what could be the problem. int main() { int width = 2 , height, length = 10, ; printf(“The volume of the box is %d\n”,width*height*length); return 0; }  

Read Details

The number -13 stored as a signed char in RAM with a two’s c…

The number -13 stored as a signed char in RAM with a two’s complement format becomes:

Read Details

Posts navigation

Newer posts 1 … 33,047 33,048 33,049 33,050 33,051 … 55,907 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top