sizeof - is it a function or operator?

Answers were Sorted based on User's Feedback



sizeof - is it a function or operator?..

Answer / aboelella

sizeof is a unary operator
It is used to get the size of datatypes
It can be used with all primitives

Is This Answer Correct ?    34 Yes 1 No

sizeof - is it a function or operator?..

Answer / ruchi

size of is a unary operator

Is This Answer Correct ?    17 Yes 0 No

sizeof - is it a function or operator?..

Answer / shabeer

sizeof is a unary operator
it is used to get the size of datatype
it can be used with all primitives

Is This Answer Correct ?    17 Yes 1 No

sizeof - is it a function or operator?..

Answer / minakshi

sizeof is a operator

Is This Answer Correct ?    16 Yes 0 No

sizeof - is it a function or operator?..

Answer / chandrakant rohi

sizeof is a operator it size of variable

Is This Answer Correct ?    3 Yes 2 No

sizeof - is it a function or operator?..

Answer / naveen

sizeof is a function which return the size of variable or
an object

Is This Answer Correct ?    2 Yes 25 No

Post New Answer

More C++ General Interview Questions

Which one is better- macro or function?

0 Answers   Fidelity,


What is a rooted hierarchy?

0 Answers  


What are abstract data types in c++?

0 Answers  


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

0 Answers  


What is the difference between global variables and static varables?

0 Answers  






what is pulse code modulation?

2 Answers   Wipro,


What do you know about friend class and friend function?

1 Answers  


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

0 Answers  


Show the application of a dynamic array with the help of an example.

0 Answers  


What is const pointer and const reference?

0 Answers  


What are the advantages of prototyping?

0 Answers  


If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 Answers  


Categories