Question
In which programming language are pointers explicitly
supported and used for memory manipulation?Solution
Pointers are variables that store the memory address of another variable. They are explicitly supported in languages like C and C++. Pointers provide low-level access to memory, enabling operations like dynamic memory allocation, arrays, and data structure manipulation. Example in C++: int x = 10;  int* ptr = &x; // Pointer to variable x  std::cout << "Value of x: " << *ptr << std::endl; // Dereferencing pointer ________________________________________ Why Other Options Are Incorrect: 1. Java: Java uses references instead of pointers, abstracting away memory management for safety and simplicity. 2. Python: Python abstracts memory management and does not expose raw pointers to developers. 3. JavaScript: JavaScript is a high-level language that does not support pointers or manual memory manipulation. 4. Kotlin: Kotlin, like Java, does not expose pointers and relies on managed memory through JVM.
Find the HCF (GCD) of 48 and 72.
Average monthly income of 35 workers is ₹52,000. Two new workers earning (r + 8000) and (r - 2000) join, and the average rises to ₹53,000. Find (r -...
The HCF of a^6 - 1 and a^4+ 2a^3- 2a-1 is
The least common multiple (LCM) of two numbers is 22 times their highest common factor (HCF). One of the numbers is 132, and the sum of the HCF and LCM ...
A sum was lent at simple interest for 2.5 years. If the rate had been 7.5% more, the interest would have been Rs. 375 extra. What was the amount lent?
The LCM and the HCF of the numbers 25 and 50 are in the ratio:
Three numbers are in the ratio 3:7:2 respectively. If the HCF of the numbers is 5, then find the LCM of the numbers.
- What is the unit digit of the number 'A' obtained by subtracting the largest two-digit prime number from the least common multiple (LCM) of all single-digi...
The HCF of two numbers is 56, and their LCM is 1680. What is the sum of the numbers?
- Find the least common multiple of (48/64), (36/54), and (24/72).