Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

nashi informatics solutions


{ City } chennai
< Country > india
* Profession *
User No # 125947
Total Questions Posted # 479
Total Answers Posted # 668

Total Answers Posted for My Questions # 836
Total Views for My Questions # 366837

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Answers / { nashi informatics solutions }

Question { 600 }

What is the use of the restrict keyword?


Answer

Used to optimize pointers by guaranteeing no overlap with other pointers.

Is This Answer Correct ?    0 Yes 0 No

Question { 691 }

What is an lvalue and an rvalue?


Answer

lvalue: A location in memory that can appear on the left-hand side of an assignment.
rvalue: The value assigned to an lvalue.

Is This Answer Correct ?    0 Yes 0 No


Question { 814 }

Can a program have multiple main() functions?


Answer

No, only one main() function is allowed.

Is This Answer Correct ?    0 Yes 0 No

Question { 735 }

What is the output of printf("%d", printf("Hello"));?


Answer

Output:
Hello5

Is This Answer Correct ?    0 Yes 0 No

Question { 653 }

Why is C called a middle-level language?


Answer

It combines features of high-level and low-level languages.

Is This Answer Correct ?    0 Yes 0 No

Question { 758 }

What is the difference between void main() and int main()?


Answer

void main() is not standard; int main() is required by the C standard to return an integer.

Is This Answer Correct ?    0 Yes 0 No

Question { 653 }

What are static functions?


Answer

Functions declared with static have internal linkage, accessible only within the file.

Is This Answer Correct ?    0 Yes 0 No

Question { 631 }

How to avoid buffer overflow?


Answer

Use bounds-checking functions like fgets() instead of unsafe functions like gets().

Is This Answer Correct ?    0 Yes 0 No

Question { 677 }

What are function pointers? Provide an example.


Answer

Pointers to functions that allow dynamic invocation of functions. Example:
void (*funPtr)(int) = &printNumber;

Is This Answer Correct ?    0 Yes 0 No

Question { 670 }

Explain command-line arguments in C.


Answer

Command-line arguments are passed to the main() function as argc (argument count) and argv (argument vector).

Is This Answer Correct ?    0 Yes 0 No

Question { 882 }

What is the difference between a shallow copy and a deep copy?


Answer

• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original.

Is This Answer Correct ?    0 Yes 0 No

Question { 861 }

Explain virtual functions in C++.


Answer

• A virtual function is a member function that can be overridden in derived classes. Declared with the virtual keyword in the base class, enabling runtime polymorphism.

Is This Answer Correct ?    0 Yes 0 No

Question { 851 }

Explain the concept of inheritance in C++.


Answer

Inheritance allows one class (derived class) to acquire the properties and methods of another class (base class). Types: single, multiple, multilevel, hierarchical, hybrid.

Is This Answer Correct ?    0 Yes 0 No

Question { 844 }

What are access specifiers in C++?


Answer

• Private: Members are accessible only within the class.
• Protected: Accessible within the class and derived classes.
• Public: Accessible from outside the class.

Is This Answer Correct ?    0 Yes 0 No

Question { 881 }

What is the use of the this pointer?


Answer

• It points to the calling object and is used to resolve scope issues, especially with member functions

Is This Answer Correct ?    0 Yes 0 No

Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16   ... 19   ... 22   ... 25   ... 28   ... 31    33   [34]    35  ... 37   ... 40   ... 43    Next