GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What should the parameters for the main function be in C?

What should the parameters for the main function be in C?

Read Details

Which of the following statements is not true about booleans…

Which of the following statements is not true about booleans in C?

Read Details

What is the output of the following code?   int i = 0;for (i…

What is the output of the following code?   int i = 0;for (i = 0; i < 20; i++){  switch(i){    case '0':        i += 1;    case '1':        i += 2;    case '5':        i += 3;    default:        i += 4;        break;}printf("%d ", i); }

Read Details

Which is the correct way to declare a for loop in C?

Which is the correct way to declare a for loop in C?

Read Details

True or False? The following code is how you’re supposed to…

True or False? The following code is how you’re supposed to compare two strings? if( str1 == str2 ) { printf( “These two strings are equal.\n” ); }

Read Details

What is the format specifier for a double?

What is the format specifier for a double?

Read Details

What is the output of the following code? int c = 5, n = 10…

What is the output of the following code? int c = 5, n = 10;do{  n /= c; } while ( c– ); printf(“%d”, n); 

Read Details

What is the default name of the executable generated from gc…

What is the default name of the executable generated from gcc?

Read Details

What does the following code print out? int x; printf( “%d”,…

What does the following code print out? int x; printf( “%d”, x );

Read Details

Predict the Output: int x = 1;switch(x) {    case 1:       …

Predict the Output: int x = 1;switch(x) {    case 1:        printf(“A”);    case 2:        printf(“B”); break;    default:        printf(“C”);} Explain what is printed and why? Consider the code is fully formed, i.e., no excuses like missing main(), missing stdio.h, etc.

Read Details

Posts pagination

Newer posts 1 … 7,647 7,648 7,649 7,650 7,651 … 86,929 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top