Category Archives: C Quiz

Q1. Is the output of this code True or False? filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int main(void) {     int b =… Read More
The localtime() function is defined in the time.h header file. The localtime( ) function return the local time of the user i.e time present at… Read More
What will be the output of the following C code? filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int main() { int i; for… Read More
Prerequisite : Pointers in C Question 1 : What will be the output of following program? filter_none edit close play_arrow link brightness_4 code #include "stdio.h"… Read More
What is the output for the following code snippet? filter_none edit close play_arrow link brightness_4 code #include<stdio.h> #define A -B #define B -C #define C… Read More
Output of following program under the assumption that numbers are stored in 2’s complement form. filter_none edit close play_arrow link brightness_4 code #include<stdio.h> int main()… Read More
C is a high-level language and it needs a compiler to convert it into an executable code so that the program can be run on… Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"    int main() {  union {int i1; int… Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"    int main() {  struct {int i; char… Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"    int main() {  struct {int a[2], b;}… Read More
Pick the best statement for the below program snippet: filter_none edit close play_arrow link brightness_4 code struct {int a[2];} arr[] = {1,2}; chevron_right filter_none (A)… Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"    int main() {  struct {int a[2];} arr[]… Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"    int size = 4; int arr[size];   … Read More
Pick the best statement for the below program: filter_none edit close play_arrow link brightness_4 code #include "stdio.h"     void fun(int n) {    int idx;    int… Read More
Pick the best statement for the below: filter_none edit close play_arrow link brightness_4 code int arr[50] = {0,1,2,[47]=47,48,49}; chevron_right filter_none (A) This isn’t allowed in… Read More