Wednesday, 9 September 2015

[SOLVED] Unable to boot Fedora 22 using Live USB Stick

Getting an error:

vesamenu.c32: not a COM32R image

When trying to boot Fedora 22 from live USB.

Steps to do:
1. Just hit TAB Button
2. Type in "linux0" or select it if option appears.
3. Hit Enter key and your Fedora will start to boot.

Program to demonstrate command line arguments in C - Addition of two numbers using command line arguments

Program:

#include<stdio.h>

void main(int argc, char * argv[]) {
   int i, sum = 0;

   if (argc != 3) {
      printf("You have forgot to type numbers.");
      exit(1);
   }

   printf("The sum is : ");

   for (i = 1; i < argc; i++)
      sum = sum + atoi(argv[i]);

   printf("%d", sum);

}


Best book for Database System

Fundamentals of Database System by Ramez Elmasri and Navathe.
Publication: Pearson
Link to the book: pearsoned.co.in/ramezelmasri