Skip to main content

Posts

Showing posts with the label character

Featured Post

Data Mining with Weka -Installation

Weka - Data mining Tool W eka is a tool for big data and data mining. It is used to various classification, experiments, and analysis over large data sets. Installation Guide -weka  You can download Weka from   here   and follow the normal installation procedure. After completion you will get following window, here you can begin your classification or experiment on different data sets with Weka.

C - Programs (Sequence) Middle number among three

11. Write a program to enter any three numbers and find out the middle number. #include <stdio.h> #include <conio.h> void main () { // X: int a, b, c; printf ("Enter any three numbers:"); scanf ("% d% d% d", & a, & b, & c); if ((a> b && a <c) || ​​(a <b && a >c)) printf ("% d is middle number", a); else if ((b> a && b <c) || ​​(b <a && b >c)) printf ("% d is middle number", b); else if ((c> a && c <b) || (c <a && c> b)) printf ("% d is middle number", c); else { printf ("Wrong data entry"); // Goto x; }  getch (); }

Escape Sequence in 'C'

These are the character not printed when used but provide various functions.  Escape Sequences are always started with a backslash '\' Commonly used  escape sequence are: Character Escape Sequence Bell (alert) \ a Backspace \ b Horizontal tab \ t Newline \ n Carriage return \ r Quotation \ " Backslash \\ null \ 0 etc.

Data Type In 'C'

Data Types Data Type Data Sub_Type Byte Format Range Character Signed Character  1  % C -128 To 127 Unsigned Character  1  % C 0 to 255 (Numeric) Integer Short signed int  2  % D -32768 To 32767 Short Unsigned int  2  % D 0 to 65535 Long Integer Long Signed int  4  % Ld -2147483648 To 2147483647 Long Unsigned int  4  % Ld 0 to 4994967295 Float Float  4  % F 3.4E-38 to 3.4E + 38 Double Double  8  % Lf 1.7E-308 to 1.7E + 308 Long Double  10  % Lf 3.4E-4932 to 3.4E + 4932