Constants

TABLE OF INFORMATION (Printed in the test booklet) me = 9.11 × 10−31 kg e = 1.60 × 10−19 coulomb N0 = 6.02 × 1023 per mole R = 8.31 joules/(mole K) k = 1.38 × 10−23 joule/K = 1.38 ×  10−16 erg/K c = 3 × 108 m/s h = 6.63 × 10−34 Joule second = 4.1 × 10−15 eV.second ħ = h/2π ɛ0 = 8.85 × 10−12 coulomb2/(newton meter2)   μ0 = 4π × 10−7 weber /(ampere meter)   G = 6.67 × 10−11 meter3/(kilogram second2)   g = 9.80 …

C program to Read From a File

#include #include void main() { FILE *fptr; char filename; char ch; printf(“Enter the filename to be opened n”); scanf(“%s”, filename); /*  open the file for reading */ fptr = fopen(filename, “r”); if (fptr == NULL) { printf(“Cannot open file n”); exit(0); } ch = fgetc(fptr); while (ch != EOF) { printf (“%c”, ch); ch = fgetc(fptr); …

Sorted Linked List implementation in C

include “stdio.h” include “stdlib.h” include “conio.h” void del(int data); void insert(int value); void display(); struct node { int data; struct node *link; }; struct node *top=NULL,*temp, *temp1, *temp2, *temp3; int main() { int choice,data; while(1) //infinite loop is used to insert/delete infinite number of elements in linked list { printf(“n1.Insertn2.Deleten3.Displayn4.Exitn”); printf(“nEnter ur choice:”); scanf(“%d”,&choice); switch(choice) { …

What is a Budget?

What is a Budget? Budget is a plan of income, expenses & other financial operation for a future period. Concept of Costing A person making or producing any thing must not only know how much it costs to make but also to help in determining the selling price.It is necessary that the person not only knows …