answersLogoWhite

0

What else can I help you with?

Related Questions

How is main function declared?

int main (void) or int main(int a, char **p)


What is earlier declaration for main?

pick one: int main (void); int main (int argc, char **argv); int main (int argc, char **argv, char **envp);


How do you write a program in C to find volumn of a cuboid?

#include <stdio.h> int main() { int side; printf( "Please enter a number: " ); scanf( "%d", &side ); printf( "The volume is %f.\n", float(side * side * side)); getchar(); return 0; }


Types of main function in C programming?

minimalist: int main (void); standard: int main (int argc, char **argv); unix-only: int main (int argc, char **argv, char **envp);


What is a valid heading for the main program?

For a 'C' program, the main routine must be on of these:int main (void)int main (int argc, char ** argv)int main (int argc, char ** argv, char **envp) /* on some platforms */


What value is return by int main method?

1. A method declared as "int" returns an int value. 2. The main() method in Java is not declared as "int", but as "void", meaning it returns no value.


Write the program that will ask the user to enter a number of per side of a square and display its outline?

#include<stdio.h> int main() { int side,area of square; print f("Enter the length of side\n"); scan f("%d",&side); area of square=side*side; print f(the area of square is %d\n"area of square); return 0; }


What must every c program have?

A main function must be present in every C program.


What are the types main to accept command line arguments?

there are only one type ie main( int argc , int argv[]).


Why doesn't the main function need a prototype statement?

Because we usually don't call it from the program, but if we do, you should have a prototype: int main (int argc, char **argv); int foobar (const char *progname) { char *param[2]; ... param[0]= progname; param[1]= "help"; main (2, param); ... } int main (int argc, char **argv) { ... foobar (argv[0]); ... }


Where does the main function starts and end in c program?

The entry point of a C program is the main function.The function signature might be like one of these:1. int main (void)2. int main (int argc, char *argv[])


Why are using the void main in C programming?

Because you misunderstood something. The correct usage: int main (int argc, char **argv)