Skip to content

Quiz Lookup

  • Home
  • Blog

Blog

Predict the Output: printf(“%d”, sizeof(‘A’)); printf(“%d”…

Predict the Output: printf(“%d”, sizeof(‘A’)); printf(“%d”, sizeof(65)); Explain what is printed and why? Consider the code is fully formed, i.e., no excuses like missing main(), missing stdio.h, etc.

Published March 4, 2026
Categorized as Uncategorized

Consider these two string variables: char str1[] = “compute…

Consider these two string variables: char str1[] = “computer”; char str2[ 20 ]; How do you assign str1 to str2 so that both strings have the same characters?

Published March 4, 2026
Categorized as Uncategorized

What is the output of the following code? char name[6] = “k…

What is the output of the following code? char name[6] = “kev\0in”; int i = 0;for(i = 0; i < 6; i++){    printf("%c",name[i]);}

Published March 4, 2026
Categorized as Uncategorized

What is the format specifier for a double?

What is the format specifier for a double?

Published March 4, 2026
Categorized as Uncategorized

You want to create a constant value using #define to represe…

You want to create a constant value using #define to represent the number 37. Which of the following is correct?

Published March 4, 2026
Categorized as Uncategorized

How many times does this while loop iterate? int a = 1; whi…

How many times does this while loop iterate? int a = 1; while ( a = 1 ) { }

Published March 4, 2026
Categorized as Uncategorized

Where is the entry point of a C program?

Where is the entry point of a C program?

Published March 4, 2026
Categorized as Uncategorized

Which of the following statements is not true about booleans…

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

Published March 4, 2026
Categorized as Uncategorized

In vim, which of the following keys can take you from Insert…

In vim, which of the following keys can take you from Insert mode to Command mode?

Published March 4, 2026
Categorized as Uncategorized

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 );

Published March 4, 2026
Categorized as Uncategorized

Posts pagination

Newer posts Page 1 … Page 7,993 … Page 87,893 Older posts
Powered by Studyeffect
  • Privacy Policy
  • Terms of Service
Quiz Lookup
Proudly powered by WordPress.