GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What is the value of the result at the end of this code bloc…

What is the value of the result at the end of this code block? char str[] = { ‘1’, ‘2’, ‘3’, ‘4’, ‘\0’ }; int result = strlen( str );

Read Details

What does the following relational expression evaluate to in…

What does the following relational expression evaluate to in C? 15 > 39

Read Details

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

Posts pagination

Newer posts 1 … 1,005 1,006 1,007 1,008 1,009 … 80,287 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top