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.
If a firm has been changing its depreciation policy every year, it is violating the_______ concept/principle of accounting.
A machine was purchased for ₹1,00,000. Depreciation is charged at 10% per annum under the Diminishing Balance Method. The book value of the machine at...
A company buys a machine for ₹12,00,000 and expects to use it for 8 years with residual value ₹80,000. Under straight-line method, annual depreciati...
Machine cost ₹10L, useful life 5 years, scrap value ₹1L. Using sum-of-years-digits method, depreciation for year 2 = ?
Under AS 6, which of the following cannot be considered a method of depreciation?
If the capital of a business is 230000, liabilities are 50000, loss 80000, then asset will be?
A plant was purchased on 1st April 2021 for ₹5,00,000. Depreciation is charged at 15% p.a. under the WDV method. On 1st October 2023, the plant was so...
A machine costing ₹8,00,000 has a useful life of 5 years and scrap value of ₹50,000. Using WDV method at 30%, what will be the book value at the end...
NRV or net realizable value of inventory is the expected selling price or market value less....
Under which condition will no depreciation be charged on a fixed asset during a financial year?