askad

MCQ'S of C Programming language

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 »

MCQ'S of C Programming language

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

What is the output of C Program? # include <stdio.h>int main(){int k=64;switch(k){case k<64: printf(“SHIP “); break; case k>=64:printf(“BOAT “);break;default:printf(“PETROL”);}printf(“CHILLY”);} A) BOAT CHILLYB) BOAT PETROL CHILLYC) SHIP BOAT CHILLYD) Compiler error Answer D What is the output of C Program with switch statement or block? # include <stdio.h>int main(){int k=8;switch(k){case 1==8:printf(“ROSE “);break;case 1 && 2:printf(“JASMINE “);break;default:printf(“FLOWER …

C MCQ Set-4 : Multiple Choice Questions in C Set-4 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 »