Skip to main content

Featured

Best AI tools for students

Top 3 AI tools for Student  The biggest problem facing students in an information-rich environment is not access, but effective learning. A new generation of Artificial Intelligence (AI) tools is achieving previously unheard-of levels of efficiency, even while tools like interactive simulations and 3D models (like PhET or BioDigital) have made difficult subjects visual. AI is entering the classroom to help with anything from creating personalized study materials to giving prompt, focused feedback on tasks. AI is a co-pilot for the student trip, freeing up cognitive space for more in-depth critical thinking and creative work. We are getting past the basic calculator example. Here are some key AI resources that all students should be aware of and use in order to thrive in the contemporary world. 1. Human Bio Digital Explore the Inner Workings of the Human Body in 3D! Have you ever wished you could peel back the layers and truly see how your body—or a specific medical condition—actual...

Elements of C: Variables , Constants, Operators

 Variables

Variable is a name of  storage location in the memory that contains data and can be modified during program execution. We can understand like this , while declaring variable we are keeping space for some value. Each variable in C language should be unique. Before using any variable we must declare it before.

Rules for naming variable

i. Starting character must be any letter or underscore ( _ ) and ends with letter or digit.
ii. Variable name must be unique.
iii. keywords of C should not be used as variable.
iv. Variable name can be both uppercase and lowercase.
v . No other special characters can be used except letters, digits and underscore.

Declaring a variable

int x;
int a, b, c, d;

Constants

Constants are those value which remains same in the program and never change during executing of program. Types of constant in C language are integer constants, character constants, real constants and string constants.

Ex:
int num = 100;
char a = 'a';
float ab = 90.0342;
char name = "Hello";

Operators

Operators are special symbols which have special meaning in the program. They can operates mathematical and logical operation. Types of operators in C language:

Arithmetic operator: +, -, *, /, %
Compound assignment operators: =, -=, +=, *=, /=, %=
Relational operator: ==, < , > <=, >=, !=
Logical operator : && (and), || (or), !(not)
Unary operator: ++, --
Ternary operator: ?, : (Ex: h = (a< b)?a:b)
 

Comments

Popular Posts