Skip to content

Tag Archives: C-Misc

1. C language : C language is a programming language developed at Bell research lab in 1972 by Dennis Ritchie. C language combines the properties… Read More
The given task is to get the current position of the cursor from the output screen in C. Approach: There is a predefined function wherex()… Read More
C Language was not called C at the beginning. It has been named as C after passing many stages of evolution. Evolution of C: ALGO… Read More
#include <stdio.h> #include <string.h> int main() {     char a[] = {'G','E','E','K','S','Q','U','I','Z'};     char b[] = "QUIZ";     char c[] = "GEEKS";     char d[] = "1234";     int l… Read More
Output of Below C Code? Assume that int takes 4 bytes. #include<stdio.h> int x = 5; int main() {     int arr[x];     static int x =… Read More
Assume the following C variable declaration int *A [10], B [10][10]; Of the following expressions I. A [2] II. A [2][3] III. B [1] IV.… Read More
#include <stdio.h> int main() {     int a[][3] = {1, 2, 3, 4, 5, 6};     int (*ptr)[3] = a;     printf("%d %d ", (*ptr)[1], (*ptr)[2]);     ++ptr;     printf("%d… Read More
Assume that the size of an integer is 4 bytes. Predict the output? #include <stdio.h> int fun() {     puts(" Hello ");     return 10; }   … Read More
Which of the following best describes C language (A) C is a low level language (B) C is a high level language with features that… Read More
The number of tokens in the following C statement is (GATE 2000) printf("i = %d, &i = %x", i, &i); (A) 3 (B) 26 (C)… Read More
The C language is. (GATE CS 2002) (A) A context free language (B) A context sensitive language (C) A regular language (D) Parsable fully only… Read More
In the C language (GATE CS 2002) (A) At most one activation record exists between the current activation record and the activation record for the… Read More