Channel Avatar

Atish Jain @UCJiTRM_0BIwYC4JZEjz_sow@youtube.com

14K subscribers

πŸŽ“ Welcome to Atish Jain – Coding Tutorials in Telugu & Engl


Welcoem to posts!!

in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c

Atish Jain
Posted 1 day ago

What is const in C?

The const keyword is used to make a variable read-only (its value cannot be changed after initialization).
It tells the compiler: β€œThis variable’s value should not be modified.”
Trying to change a const variable will usually give a compile-time error.

Example: Using const with a variable
#include <stdio.h>

int main() {
const int x = 10; // constant integer
printf("Value of x: %d\n", x);
// x = 20; // ❌ Error: assignment of read-only variable
return 0;
}


βœ… Output:
Value of x: 10

1 - 1

Atish Jain
Posted 1 day ago

What is the decimal equivalent of the hexadecimal number 2F?

1 - 1

Atish Jain
Posted 2 days ago

Python program that converts Decimal Number System to Octal Number System:

decimal_num = int(input("Enter a decimal number: "))
octal_num = oct(decimal_num)
print("Octal representation:", octal_num)

Sample Output:
Enter a decimal number: 25
Octal representation: 0o31

0 - 5

Atish Jain
Posted 2 days ago

A compiler translates the entire source code into machine code at once, while an interpreter translates and executes code line by line.

2 - 1

Atish Jain
Posted 3 days ago

Which of the following is not a feature of Python?

1 - 1

Atish Jain
Posted 3 days ago

C program to Calculate Simple Interest:
Find the error

#include <stdio.h>

int main() {
float p, r, t, si;
printf("Enter Principal, Rate and Time: ");
scanf("%f %f %f", &p, &r, t);

si = (p * r * t) / 100;
printf("Simple Interest = %f\n", si);

return 0;
}


Comment down your answer

1 - 5

Atish Jain
Posted 4 days ago

Variable Declaration, Initialization and Assignment in C

1. Variable Declaration
Tells the compiler the name and type of a variable (reserves memory).
Does not always assign a value.
πŸ‘‰ Example:
int age; // Declares an integer variable 'age'
float salary; // Declares a floating-point variable 'salary'

2. Variable Initialization
Means giving an initial value to a variable at the time of declaration.
πŸ‘‰ Example:
int age = 20; // age is declared and initialized to 20
float salary = 5000.5; // salary is declared and initialized

3. Variable Assignment
Means storing a value into a variable (after it has been declared).
Can happen anywhere in the program.
πŸ‘‰ Example:
int age; // Declaration
age = 25; // Assignment after declaration

1 - 1

Atish Jain
Posted 4 days ago

The print() function in Python always separates multiple arguments with a space by default

1 - 1

Atish Jain
Posted 6 days ago

Negative indexing in Python strings starts from -0.

3 - 1

Atish Jain
Posted 6 days ago

What is the ASCII value of the character 'A'?

2 - 1