sizeof - is it a function or operator?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / chandrakant rohi
sizeof is a operator it size of variable
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / naveen
sizeof is a function which return the size of variable or
an object
Is This Answer Correct ? | 2 Yes | 25 No |
Which one is better- macro or function?
What is a rooted hierarchy?
What are abstract data types in c++?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is the difference between global variables and static varables?
what is pulse code modulation?
What do you know about friend class and friend function?
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h
Show the application of a dynamic array with the help of an example.
What is const pointer and const reference?
What are the advantages of prototyping?
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.