write a program for size of a data type without using
sizeof() operator?
Answer Posted / tishu
#include<stdio.h>
void main()
{
long int i,j,k;
printf("Enter a number");
scanf("%d",&i);
if(-32768<i && i<32767)
j=i*i;
k=j/(j/2);
printf("%d",k);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between constant pointer and constant variable?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Explain why can’t constant values be used to define an array’s initial size?
What is the general form of #line preprocessor?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
What are volatile variables in c?
What is c variable?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is the best way to comment out a section of code that contains comments?
What are the string functions? List some string functions available in c.
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
Can we increase size of array in c?
How are variables declared in c?
What are the different properties of variable number of arguments?
What is the process of writing the null pointer?