with out using main how to execute the program?
Answers were Sorted based on User's Feedback
Answer / pradeep
It is not a c program if it is not using main function.
Compiler starts execution from main function always.
| Is This Answer Correct ? | 18 Yes | 4 No |
Answer / sagar
In any C program, it must contain main function..........
So, it is not possible to run any program without main
function .......
| Is This Answer Correct ? | 5 Yes | 5 No |
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
Explain modulus operator.
What is storage class?
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer
program to find which character is occured more times in a string and how many times it has occured? for example in the sentence "i love india" the output should be i & 3.
How can I read a binary data file properly?
What are type modifiers in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3