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 library is sizeof in c?
Explain what is the heap?
Is c easy to learn?
State the difference between realloc and free.
What is malloc and calloc?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Where local variables are stored in c?
How do you construct an increment statement or decrement statement in C?
Is flag a keyword in c?
What is the difference between scanf and fscanf?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
How do you print only part of a string?
What is main function in c?
What is extern variable in c with example?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...