Without using main fn and semicolon,print remainder for a
given number in C language
Answers were Sorted based on User's Feedback
Answer / ronak pareel
it is easy but you want to use main function
#include<stdio.h>
main()
{
if(printf("
%d",11%10))
}
// In this code at the place of 11 you can write your no
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / swamy
we can not print any number with out using main function
and semicolon.
I think
| Is This Answer Correct ? | 0 Yes | 5 No |
What is #line in c?
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??
In c programming language, how many parameters can be passed to a function ?
How can we allocate array or structure bigger than 64kb?
write a program to print data of 5 five students with structures?
what is the purpose of the code, and is there any problem with the code? int f( int n, int l, int r ) { return (n << l) >> r; }
What is the difference between text files and binary files?
write a program to concatenation the string using switch case?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
What is the difference between malloc() and realloc()?
how many argument we can pas in in a function
Is c still used?