|
| Total Answers and Comments: 1 |
Last Update: March 20, 2006 |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. |  Main must be written asa.the first function in the programb.Second function in the programc.Last function in the programd.any where in the program C
What does the following function print?func(int i){if(i%2)return 0;eale return 1;}main(){int =3;i=func(i);i=func(i);printf("%d",i);}a.3b.1c.0d.2 C
Consider the following programmain(){int a[5]={1,3,6,7,0};int *b;b=&a[2];}the value of b[-1] isa.1b.3c.-6d. none B
# define prod(a,b)=a*bmain(){int x=2;int y=3;printf("%d",prod(x+2,y-10)); }the output of the program is a.8b.6c.7d.none A
Consider the following program sigmentint n,sum=1;switch(n) {case 2:sum=sum+2;case 3:sum*=2;break;default:sum=0;} if n=2, what is the value of suma.0b.6c.3d.none B
Find the output of the following programmain(){int x=5, *p;p=&x;printf("%d",++*p);}a.5b.6c.0d.none B
Consider the following C codemain(){int i=3,x;while(i>0){x=func(i);i--;}int func(int n){static sum=0;sum=sum+n;return(sum);}the final value of x isa.6b.8c.1d.3 A
Main must be written asA. The first function in the programB. Second function in the programC. Last function in the programD. Any where in the program
What does the following function print?func(int i){if(i%2)return 0;else return 1;}main(){int =3;i=func(i);i=func(i);printf("%d",i);}A. 3B. 1C. 0D. 2
Consider the following programmain(){unsigned int i=10;while(i>=0) { printf("%u",i) i--; }}How many times the loop will get executedA.10B.9C.11D. infinite
How is the main() function declared? | |
The declaration of main can be done as
int main()
One more declaration that can be taken by main is command line arguments form
int main(int argc, char *argv[])
or this can also be written as
int main(argc, argv)
int argc;
char *argv[];
NOTE: It is not possible for one to declare the main |
|
|
How to develop compile and run a C program | |
The steps involved in building a C program are:
1. First program is created by using any text editor and the file is stored with extension as .c
2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop |
|
Quality Aspects to Check While Writing COBOL Program | |
Quality Aspects to Check While Writing COBOL Program This article gives a general list which the programmer must check while delivering programs developed in COBOL This can also be used as a general checklist for checking quality of the COBOL program developed mosgoogle Quality is a vital factor fo |
|
How To Write The Main Heading For Your Essay | |
How To Write The Main Heading For Your Essay When you write an essay you will want to make sure you write a good heading To write a good heading you will need to plan your essay very effectively If you remember any good points from lectures these could be things you may want to use to create a good |
|
Basic concepts of OOPS and Structure of C++ program | |
Basic concepts of OOPS and Structure of C program In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Reusability Before starting to learn C it is essential that one must have a basic knowledge of the concepts of Object orie |
|
Online Degree Program Information | |
Online Degree Program Information While the concept of distance learning is not recent the use of the internet to earn degrees online is a relatively new concept The beginning of what would become a revolution in education started in the middle of the 1990s mosgoogle It was during this time that hig |
|
Exforsys Certification Practice Program Version 1 Uploaded | |
Exforsys Certification Practice Version 1 Uploaded We are glad to let you know that we have completed Certification Testing Module changed and bug fixes It s now avaiable for download and practice for the exams from your home PC We are giving this program for free at no charge all we ask in return y |
| |
|