Wednesday - February 28, 2024
#C, C++ and C# #Blog #C Program #Computer Science

C Programming Examples with Output Part – 3

Program

1) What is the output of the following program? Character Add or two words add.

void main()
{
           printf("computer/b/b/b/b/b");
           printf("hello! /b/b/bEngineering")
}
Output:
comphel Engineering
c program examples, c programming examples with output, basic programs in c, c programs for practice, c language basics, c programs for interview, c programming questions, c programming tutorial, c program examples, basic programs in c, c programming software, c programming tutorial, c programs for practice, c programs with solutions, c program online compiler, c program examples, c program to add two numbers, c program compiler, c program to find factorial of a number, c program to reverse a number, c program to reverse a string, c program for prime number, structure of c program, hello world c program, leap year c program, bubble sort in c program, merge sort in c program, quick sort in c program,

2) What is the output of the following program? Character Add or two words add.

void main ()
{
          printf("computer /b/b/b/b/b");
          printf("Hi! /b/b/bscience");
}


Output:
compHi science

3) What is the output of the following program? If the user inputs the values as MUMBAI DELHI GOA. The first letter finds out.

void main()
{
         chr a,b,c;
         scanf("%c%c%c" , &a, &b, &c);
         printf("a=%c b=%c c=%c", a,b,c,)
}


Output;
a=m b=u c=m

4) what is the output of the following program? – Area Equation 

# define AREA(r) (3.14*r*r)
main()
{
printf("%d", AREA(3*2));
}
Output:
113. 04000
note: for %f

.