Sunday, 23 October 2016

Write a program to print an array in reverse order?

Write a program to print an array in reverse order?

/* ##################################
      Girfa : Student Help
      Reverse an array
      for more program visit : http://girfahelp.blogspot.in/2012/09/some-program-of-c-language.html
   ################################### */

#include<stdio.h>
#include<conio.h>
void main()
{
      int ar[5],i;
      clrscr();
      for(i=0;i<5;i++)
      {
            printf("Enter %d position number>> ",i+1);
            scanf("%d",&ar[i]);
      }
      printf("\n\tOriginal Input\n");

Scanf : C Language Function

Scanf C Language Function

Scanf

A function is use to take input from keyboard and transfer to a variable.

Syntax

Scanf(“format string”,&variable_list);

Format string : %d,%c,%f,%s has been use as format string .

Variable_list : Name of variable followed by address operator where input though keyboard been transferred.

Example

Scanf(%d”,&a);  Integer input
Scanf(“%c”,&a); character input

Thursday, 20 October 2016

fclose : C Language stdio.h

fclose

 Closes a stream

 Declaration:  int fclose(FILE *stream);

 Remarks:

fclose closes the named stream.

All buffers associated with the stream are flushed before closing.

System-allocated buffers are freed upon closing.

Buffers assigned with setbuf or setvbuf are not automatically freed. (But if
setvbuf is passed null for the buffer pointer, it will free it upon close.)

 Return Value
  þ On success, returns 0
  þ On error, returns EOF

 Portability:

DOS
Yes
UNIX
Yes
C++ Only


Wednesday, 19 October 2016

Syllabus : M4.3-R4: INTRODUCTION TO ICT RESOURCES

Objective of the Course

This course has been designed to provide an introduction to Computer Hardware and Networking troubleshooting & maintenance. The student will be able to troubleshoot problems of PC and replace the defected parts of the computer. Students will understand the basic networking concepts and they will be able to establish and manage small networks.

At the end of the course students will be able to:

  •  Assemble and disassemble a PC
  •  Effectively use miscellaneous utilities such as: Compression, CD writing, Antivirus etc.
  •  Establish and configure a small LAN
  •  Perform simple network administration operation