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
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Does c have class?
What is oops c?
Explain 'far' and 'near' pointers in c.
What are control structures? What are the different types?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Is calloc better than malloc?
What are the standard predefined macros?
What is a pointer and how it is initialized?
Is javascript written in c?
Should I learn c before c++?
regarding pointers concept
Is it acceptable to declare/define a variable in a c header?
Why is %d used in c?
show how link list can be used to repersent the following polynomial i) 5x+2