Languages-C & C Plus Plus [3i Infotech Placement]: Sample Questions 56 - 58 of 354

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 56

C & C Plus Plus
Edit

Describe in Detail

Essay▾

What is friend function?

Explanation

  • A fried class is defined outside another class՚s scope but has the right to access all its private and protected members.
  • The prototypes for friend functions appear in the class definition, friends are not member function.
  • A friend can be function, function template, or member function a class or class template, in which case the entire class and all of its members are friends.
  • For accessing the data, the declaration of a friend function should be made inside the body of the class starting with keyword friend.

Declaration of friend function:

class class_name

{

friend return_type function_name (argument) ;

}

Question 57

C & C Plus Plus
Edit

Describe in Detail

Essay▾

What is meant by software development method?

Explanation

  • Software development is reliable and reproducible method for modelling and building software systems.
  • Defines the life cycle on the development of a software product.
  • Several models describe approaches to a variety of tasks or activities during the process.
Given the Image is Software Development Process

Question 58

C & C Plus Plus
Edit

Write in Short

Short Answer▾

Write down the equivalent pointer expression for referring the same element a [i] [j] [k] [l] ?

Explanation

  1. A[i]==⚹(a+i)
  2. A[i][j]==⚹(⚹(a+i)+j)
  3. A[i][j][k]==⚹(⚹(⚹(a+i)+j)+k)
  4. A[i][j][k][l]==⚹(⚹(⚹(⚹(a+i)+j)+k)+l)

Developed by: