Thursday, 31 August 2017

Preprocessor Directive

A pre-processor directory is a set of text which is start with # symbol. When C source code compile then process of compilation get start from pre-processor directory. It means all pre-processor directories compile before actual compilation.

Preprocessor Directive C Language

Example
  • Header fil

Computer Fundamental MCQ CCC

CCC Fundamental MCQ/True-False Question with Answer

Multiple Choice

1. How many types of memory used in computer?
A) 1
B)  2
C) 3
D) 4

2.  Which Type of memory got outdated?
A) PROM
B)EEPROM
C)CD

Wednesday, 23 August 2017

Command Line Argument

C language is known as a language of building block of function. It means all the things achieved by the language using function.

A function is a set of some valid statements of language. Which achieved some specific task? You need to know some information about function before using it.
  • Function name
  • Return type

Tuesday, 22 August 2017

Print Some Character from a File

Q : Write a ‘C’ program to print only first 12 characters including blank space from file test.txt.
Solution :

#include<stdio.h>
#include<conio.h>

void main()
{
     FILE *pt;
     int i;
     char ch;
     pt=fopen("test.txt","r");
     if(pt==NULL)