C

Set-26 C MCQ

C MCQ Set-8 : Multiple Choice Questions in C Set-8

1. What is the output of C Program.? int myshow(int);void main(){myshow(5);myshow(10);} int myshow(int b){printf(“Received %d, “, b);} A) Received 5, Received 10,B) Received 10, Received 5,C) Received 0, Received 0,D) Compiler error Ans:A 2. What is the output of code given below? #include <stdio.h>int main(){int i=1;for(;;){printf(“%d”,i);if(i=5)break;}} A)1 2 3 4 5B)1C)1 infinite timesD)Compilation error Ans:B …

C MCQ Set-8 : Multiple Choice Questions in C Set-8 Read More »

Set-26 C MCQ

C MCQ Set-7 : Multiple Choice Questions in C Set-7

1. What will be output of following code?#include<stdio.h>int main(){int i = 0;while (i = 0)printf(“True\n”);printf(“False\n”);} A) True (infinite time)B) True (1 time) FalseC) FalseD) Compiler dependent Ans: C 2. What will be output of following code?#include<stdio.h>int main(){int i = 0, j = 0;while (i < 5, j < 10){i++;j++;}printf(“%d, %d\n”, i, j);} A) 5, 5B) …

C MCQ Set-7 : Multiple Choice Questions in C Set-7 Read More »

Set-26 C MCQ

C MCQ Set-5 : Multiple Choice Questions in C Set-5

1.What will be output of following code? # include <stdio.h>int main(){int i=0;for(; i<=5; i++);printf(“%d”, i);return 0;} A)0 1 2 3 4 5B)6C)0 1 2 3 4 5 6D)compilation error Ans:B 2.What will be output of following code? # include <stdio.h>int main(){int loop=10;while(printf(“Hello “) && loop–);} A)HelloB)Hello Hello Hello Hello … (Infinite times)C)Hello Hello Hello Hello …

C MCQ Set-5 : Multiple Choice Questions in C Set-5 Read More »

C tutorials

Welcome to C Programming!

Welcome to C Programming! : C language Tutorial with programming approach for beginners and professionals, helps you to understand the C language tutorial easily. Our C tutorial explains each topic with programs. This Language is developed by Dennis Ritchie for creating system applications that directly interact with the hardware devices such as drivers, kernels, etc.C programming …

Welcome to C Programming! Read More »

C - Installation

Installation of C

Installation of C : There are many compilers available for c and c++. You need to download any one. We will tell you two methods of installing C . Now, we are going to use Turbo C++. It will work for both C and C++. To install the Turbo C software, you need to follow following …

Installation of C Read More »

C - Syntax

Syntax in C

Syntax in C : You all have learn and seen the basic structure of a C program, so now  it will be easy to understand other basic building blocks of the C programming language. Tokens in C A C program is consists of various tokens and a token is either a keyword, an identifier, a …

Syntax in C Read More »

C - Comments

Comments in C

Comments in C language are used to provide information about lines of code. It is widely used for documenting code. There are 2 types of comments in the C language. Single Line Comments Multi-Line Comments Single Line Comments Single line comments are represented by double slash \\. Let’s see an example of a single line …

Comments in C Read More »