Undefined
Give the output of the programvoid main(){int i;for(i=1;i<4,i++)switch(i)case 1: printf("%d",i);break;{case 2:printf("%d",i);break;case 3:printf("%d",i);break;}switch(i) case 4:printf("%d",i);}
1,2,3,4
Give the output of the programvoid main(){char *s="12345sn";printf("%d",sizeof(s));}
6
Give the output of the programvoid main(){unsigned i=1; /* unsigned char k= -1 => k=255; */signed j=-1; /* char k= -1 => k=65535 *//* unsigned or signed int k= -1 =>k=65535 */if(ij)printf("greater");elseif(i==j)printf("equal");}
less
D
The number of syntax errors in the program?int f()void main(){f(1);f(1,2);f(1,2,3);}f(int i,int j,int k){printf("%d %d %d",i,j,k);}
None.
56QUESTION 11#define one 0#ifdef oneprintf("one is defined ");#ifndef oneprintf("one is not defined ");
Void main(){int count=10,*temp,sum=0;temp=&count;*temp=20;temp=∑*temp=count;printf("%d %d %d ",count,*temp,sum);}
20; 20; 20;
321
Char *foo(){char result[100]);strcpy(result,"anything is good");return(result);}void main(){char *j;j=foo()printf("%s",j);}
anything is good.
ERP Systems as Quality Control Support | |
ERP Systems as Quality Control Support For the past few years ERP systems have became one of the most powerful tools for quality control management But ERP is just an informatics system that provides support to the integrated business management mosgoogle center Goals of the Quality Control Module i |
|
C++ Void Pointer and Null Pointer | |
C Void Pointer and Null Pointer In this C tutorial you will learn about two interesting types of pointers; void pointers and Null Pointer These pointers will be discussed in conjunction with syntax usage and example mosgoogle center Pointer to Void General Syntax void pointer variable; Void is use |
|
Evolution of database systems | |
The Evolution of Database systems
File Management System
Hierarchical database System
Network Database System
Relational Database System
File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl |
|
printf() Function Return Value | |
What is the return value from printf() function?
printf function always returns the number of characters printed. Let us understand this with an example:
main()
{
int a=10;
printf("%d",printf("%d %d %d", a,a,a));
}
In this above program the inner printf i |
|
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 |
|
|
What are the Format Specifiers used with printf? | |
There are several format specifiers available in printf. The format specifier used varies depending on the data type used for printing. The given below are some of the format specifiers used with printf in C program.
For integer data type the format specifier used with printf is %d or %i
For float |
|
printf and sprintf | |
What is the difference between printf and sprintf?
sprintf: Writes formatted data to a character string in memory instead of stdout
Syntax of sprintf is:
#include <stdio.h>
int sprintf (char *string, const char *format
[,item [,item]...]);
Here,
String refers to the pointer to a |
|
Database Systems | |
Early Databases
In the 1960s, the System Development Corporation, one of the world’s first computer software companies and a significant military technology contractor, first used the term “data base” to describe a system to manage United States Air Force personnel. The |
|
Systems Design | |
In previous chapter, we discussed system analysis and requirements stage in SDLC where everything was laid out on papers. SDLC makes sure that there is an actual need for the software being developed. Developers need to think of this first, especially in a business setting.&n |
|
|