Thursday, July 25, 2019

Best Free Photo Editing Software | Quick and Easy Edit : Photoscape

Best Free Photo Editing Software |Quick and Easy Editing| Photoscape
Best Free Photo Editing Software | Quick and Easy Edit : Photoscape

Hello friends....

Aaj main aapko bataunga kis ki madad se hum photo ko kaise edit aur filter aur bhi bahut kuch kaise kar sakte hain....

Aise bahut se log honge jinhe photoshop jaise paid software ko use karne aur usse photo ko edit karna nhi accha lagta . To hum aj aapko batainge ki hum Photoscape free editing software ki madad se kaise ye kaam aasani se kar sakte hain.

Yeh ek free software hai jisme hum bahut se tarikon se apni photo ko edit kar sakte hain...


























PhotoScape

PhotoScape is a fun and easy photo editing software that enables you to fix and enhance photos.

Key Features


Viewer: View photos in your folder, create a slideshow

Editor:resizing, brightness and color adjustment, white balance, backlight correction, frames, balloons, mosaic mode, adding text, drawing pictures, cropping, filters, red eye removal, blooming, paint brush, clone stamp, effect brush.

Batch editor: Batch edit multiple photos

Page: Merge multiple photos on the page frame to create one final photo

Combine:Attach multiple photos vertically or horizontally to create one final photo

Animated GIF: Use multiple photos to create a final animated photo

Print: Print portrait shots, carte de visites(CDV), passport photos

Splitter:Slice a photo into several pieces

Screen Capture: Capture your screenshot and save it

Color Picker: Zoom in on images, search and pick a color

Rename:Change photo file names in batch mode

Raw Converter: Convert RAW to JPG

Paper Print: Print lined, graph, music and calendar paper

Face Search: Find similar faces on the Internet

PhotoScape is provided free of charge.

We are always upgrading PhotoScape.

You can support future development by donating.

If you are a user of Windows 10 or Mac, please use 
PhotoScape X.









Download PhotoScape 3.7

Get it from softonic.com!

PhotoScape is a fun and easy photo editing software that enables you to fix and enhance 

photos.

To install PhotoScape 3.7 on your computer, click one of the Free Download buttons below.




Get it from CNET Download.com!

The downloading file is approx 20 M.B.
This software is compatible for windows ( Vista\7\8 \10)






Labels:

Friday, July 12, 2019

Tokens and Reserved Keywords in C language

Tokens and Reserved  Keywords in

 C language

Tokens and Reserved  Keywords in  C language

Keywords are pre-defined words in a C compiler. Each keyword is meant to perform a specific function in a C program. Since keywords are referred names for compiler they can’t be used as variable name.

C language supports 32 keywords which are given below:

  1. auto
  2. int
  3. const
  4. short
  5. break
  6. long
  7. continue
  8. signed
  9. double
  10. struct
  11. float
  12. unsigned
  13. else
  14. switch
  15. for
  16. void
  17. case
  18. register
  19. default
  20. sizeof
  21. char
  22. return
  23. do
  24. static
  25. enum
  26. typedef
  27. goto
  28. volatile
  29. extern
  30. union
  31. if
  32. while


Tokens:

C tokens are the basic building blocks in C language which are constructed together to write a C program. Each and every smallest individual units in a C program are known as C tokens.

C tokens are of six types, they are,

1.     keywords (e.g. : int, while),
2.     Identifiers (eg: main, total),
3.     Constants (eg: 10,20),
4.     Strings (eg: “total”,”hello”),
5.     Special symbols (eg: (),{}),
6.     Operators (eg: +,-,/,*)

C token example program:

int main()
{
int x,y,total;
x=10, y=20;
total=x+y;
printf(“total=%d\n”,total);
}

where,
main – Identifier
(),{} – special symbols
int – keyword
x,y,total – Identifiers
main,int, x,y, total,{},() – tokens

Labels:

Data Types in C Programming Language

 Data Types in C Programming

 Language

Data Types in C Programming  Language
C data types are defined as the data storage format that a variable can store a data to perform a specific operation.

Data types are used to define a variable before to use in a program.
Size of variable, constant and array are determined by data types.

C-Data types:

There are four data types in C Language they are,

Types
Data Types
Basic Data types
int,char,float, double
Enumeration data type
enum
Derived data type
pointer,array,structure,union
Void data type
void

1. Basic data types in C language:

Integer data type:

Integer data type allows a variable to store numeric values. “int” keyword is used to refer integer data type. The storage size of int data type is 2 or 4 or 8 type. It varies depend upon the processor in the CPU that we use. If we are using 16 bit processor, 2 byte (16bit) of memory will be allocated for int data type.

Like wise, 4 byte (32 bit) of memory for 32 bit processor and 8 byte (64bit) of memory for 64 bit processor is allocated for int data type.

int(4 byte) can store values from -32,768 to +32,767 int (4byte) can store values from -2,147,483,648 to +2,147,483,647

If you want to use the integer value that crosses the above limit, you can go for “long int” and “long long int” for which the limits are very high.

Note:

We can’t store decimal values using int data type.
If we use int data type to store decimal values, decimal values will be truncated and will get only whole number.
In this case , float data type can be used to store decimal values in a variable.

Character Data Type:

Character data type allows a variable to store only one character. Storage size of character data type is 1. We can store only one character using character data type. “char” keyword is used to refer character data type.

For example:

‘A’ can be stored using char datatype. You can’t store more than one character using char data type.

Floating point data type:

Floating point data type consists of 2 types. They are,
float
double


Float:

Float data type allows a variable to store decimal values. Storage size of float data type is 4. This also varies depend upon the processor in the CPU as “int” data type. We can use upto 6 digits after decimal using float data type.

For Example:
10.456789 can be stored in a variable using float data type.

Double:

Double data type is also same as float data type which allows upto 10 digits after decimal. The range for double data type is from 1E-37 to 1E+37.

sizeof() function in C language:

sizeof() function is used to find the memory space allocated for each C data types.

#include <stdio.h>
#include <limits.h>
int main()
{
int a;
char b;
float c;
double d;
printf(“Storage size for int data type:%d\n”,sizeof(a));
printf(“Storage size for char data type:%d\n”,sizeof(b));
printf(“Storage size for float data type:%d\n”,sizeof(c));
printf(“Storage size for double data type:%d\n”,sizeof(d));
return 0;
}

OUTPUT:

Storage size for int data type:4
Storage size for char data type:1
Storage size for float data type:4

Storage size for double data type:8

Modifiers in C Language:
The amount of memory space to be allocated for a variable is derived by modifiers. Modifiers are prefixed with basic data types to modify (either increase or decrease) the amount of storage space allocated to a variable.
For Example:
storage space for int data type is 4 byte for 32bit processor. We can increase the range by using long int which is 8 byte. We can decrease the range by using short int which is 2 byte.

There are 5 modifiers available in C language. They are,

  1. short
  2. long
  3. signed
  4. unsigned
  5. long long


Below table gives the detail about the storage size of each C basic data type in 16 bit processor. Please keep in mind that storage size and range for int and float datatype will vary depend on the CPU processor (8,16,32 and 64 bit).

C Data types/ Storage Size
Range
char/1
-127 to 127
int/2
-32767 to 32767
float/4
1E-37 to 1E+37 with six digits of precision
double /8
1E-37 to 1E+37 with ten digits of precision
long double/10
1E-37 to 1E+37 with ten digits of precision
long int/4
-2147486647 to 2147486647
short int/2
-32767 to 32767
unsigned short int/2
0 to 65535
signed short int/2
-32767 to 32767
long long int/8
-(2power(63)-1) to 2(power)63-1
signed long int/4
-2147486647 to 2147483647
unsigned long int /4
0 to 4294967295
unsigned long long int/8
2(power)64-1


2. Enumeration data type in C language:


Enumeration data type consists of named integer constants as a list. It start with 0 (zero) by default and value is incremented by 1 for the sequential identifiers in the list.

Enum syntax in C:

enum indentifier [optional{enumerator-list}];

 Enum example in C:

enum month{Jan,Feb,Mar};/* Jan, Feb and Mar variables will be assigned to 0,1 and 2 respectively by default*/
or
enum month{Jan=1, Feb, Mar};/* Feb Mar variables will be assigned to 2 and 3 respectively by default*/

enum month {Jan=20, Feb,Mar};/* Jan is assigned to 20. Feb and Mar variables will be assigned to 21 and 22 respectively by default*/
The above enum functionality can also be implemented by “#define” preprocessor directive as given below. Above enum example is same as given below.

#define Jan 20;
#define Feb 21;
#define Mar 22;
C-enum example program:
#include <stdio.h>
int main()
{
enum MONTH {Jan=0,Feb,Mar};
enum MONTH month=Mar;
if(month==0)
printf(“value of Jan”);
else if(month==1)
printf(“Month is Feb”);
if(month==2)
printf(“Month is Mar”);
}

OUTPUT:

Month is March

3. Derived data type in C language:
Array, pointer, structure and union are called derived data type in C language.

4. void data types in C language:
Void is an empty data type that has no value. This can be used in functions and pointers.

Labels:

Format Specifiers Printf ,Scanf in C Programming

Format Specifiers Printf ,Scanf in C

 Programming

Format Specifiers Printf ,Scanf in C  Programming

In C programming language, printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen. We use printf() function with %d format specifiers to display the value of an integer variable, %s for string variable, %If for double and %x for hexadecimal variable.
To generate a newline, we use “\n” in C printf() statement.

Note:

C Language is case sensitive.

 For example, printf() and scanf() are different from printf() and scanf(). All characters in printf() and scanf() functions must be in lower case.

Example program for C printf() function:

#include<stdio.h>
int main()
{
char ch= ‘A’;
char str[20]= “pocketedu.com”;
float flt= 10.234;
int no= 150;
double dbl= 20.123456;
octal o=226;
hexadecimal x=96;
printf(“character is %c\n”,ch);
printf(“string is %s\n”,str);
printf(“float value is %f\n”,flt);
printf(“Integer value is %d\n”,no);
printf(“double value is %If\n”,dbl);
printf(“octal value is %o\n”,dbl);
printf(“hexadecimal value is %x\n”,dbl);q
printf(“Octal value is %o\n”,no);
printf(“Hexadecimal value is %x\n”,no);
return 0;
}

Output:

Character is A
Sring is pocketedu.com
float value is 10.234         
Integer value is 150
Double value is 20.123456
Octal value is 226
Hexadecimal value is 96
You can see the output with the same data which are placed within the double quotes of printf statement in the program except
%d got replaced by value of an integer variable (no),
%c got replaced by value of a character variable (ch),
%f got replaced by value of a float variable (flt),
%If got replaced by value of a double variable (dbl),
%s got replaced by value of a string variable(str),
%o got replaced by a octal value corresponding to integer variable  (no),
%x got replaced by a hexadecimal value corresponding to integer variable
\n got replaced by a newline.

scanf() function in C language:

In C programming  language, scanf() functionis used to read character, string, numeric data from keyboard. Consider below example program where user enters a character. This value is assigned to the variable “ch” and then displayed. Then, user enters a string and this value is assigned to the variable “str” and then displayed.

Example program for print() and scanf() functions in C programming language:

#include <stdio.h>
int main()
{
char ch;
char str[100];
printf(“Enter any character\n”);
scanf(“%c”,&ch);
printf(“Entered character is %c\n”,ch);
printf(“Enter any string (upto 100 character)\n”);
scanf(“%s”,&str);
printf(“Entered string is %s\n”,str);
}

Output:

Enter any character
a
Entered character is a
Enter any string (upto 100 character)
Hiii
Entered string is Hiii

The format specifier %d is used in scanf() statement. So that, the value entered is received as an integer and %s for string. Ampersand is used before variable name “ch” in scanf() statement as &ch. It is just like in a pointer which is used to point to the variable.

Labels: