Assignment 1
Title
Question
//welcome to the world of c
#include<stdio.h>
int main()
{
Printf("welcome to the world of c") ;
return 0;
}
C-and-Cpp First-C-Program 11-12 min 0-10 sec
Answers:
//Assignment 1
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
/*Output
welcome to the world of c
*/
Ans:- If \n is not included in printf statement cursor will blink on that line only and next statements will be printed on the same line
/*Welcome to the World of C*/
#include<stdio.h>
int main()
{
printf("Welcome to the World of C");
return 0;
}
// Output : Welcome to the World of C
Ans: Cursor will blink on that line only
// Assignment 1
int main()
{
printf(" Welcome To The World Of C ");
return 0;
}
<span style="background-color: rgb(255, 255, 255);"> // Output: Welcome To The World Of C</span>
//assignment 1
#include<stdio.h>
int main()
{
Print("welcome to the world of c");
return 0;
}
//Output: welcome to the world of c
Ans: cursor will blink on that line only
//Assignment 1
#include<stdio.h>
int main()
{
printf("Welcome To The World Of C");
return 0;
}
Ans: cursor will blink on the previous line and the next statements will be printed on that particular line only
#include<stdio.h>
int main()
{
printf("Welcome to the World of c ");
return 0;
}
/*Output
Welcome to the World of c
*/
ANSWER = cursor blinks on that line
// Assignment 1
#include<stdio.h>
int main()
{
printf("Welcome To The World Of C");
return 0;
}
Ans- cursor will blink on the same line and the next statements will be printed on the same line
//Assignment 1
#include<studio.h>
int main()
{
print("welcome to the ");
Printf("world of c");
return 0;
}
/*assignment-1 second program */
#include<studio.h>
int main()
{
Printf("my name is shruti"\n);
Printf("city : nanded"\n);
return 0;
}
/ /ASSIGNMENT 1//
#include<stdio.h>
int main()
{
printf("Welcome to the World of c ");
return 0;
}
/*Output
Welcome to the World of c
*/
ANSWER = cursor blinks on that line
/*Assignment 1*/
/*Welcome to the world of c*/
#include<stdio.h>
int main()
{
Print f("welcome to the world of c");
Return 0;
}
/*Output
Welcome to the world of c*/
Cursor will blink on that line only
//Assignment 1//
#include<studio.h>
int main()
{
Printf("welcome to the world of c");
return 0;
}
//Welcome to the world of c//
#include<studio.h>
int main ()
{
printf("Welcome to the world of c ");
return 0;
}
Output: Welcome to the world of c
Ans: cursor will blink on that line only then the next statement printed on the same line
// Assignment -1
#include <stdio.h>
int main ()
{
Printf ("Welcome to the world of C");
return 0;
}
/* Output
Welcome to the world of C
*/
Answer: If /n is not included in the printf statement then cursor will blink on that line only and next statement will be printed on the same line.
/*Assignment _ 1*/
#include<stdio.h>
int main ()
{
Printf("Welcome to the world of C");
return 0;
}
/*Output
Welcome to the world of C
*/
Ans:. If \n is not included in the printf
Statment, then curosr will blink
on that line only and next statment will be printed on same line.
// Assignment1//
#include<stdio.h>
int main()
{
Printf("welcome to the world to C") ;
return 0;
}
/*output
Welcome to the world to C
*/
Ans: if \n is not present in printf Statment cursor will be blink on the line
//Assignment-1//
Ans:-
#include<studio.h>
Int main ()
{
Printf ("Welcome to the World of C ");
return 0;
}
Output:-Welcome to the World of C
Ans:- If \n is not included in the printf statement then the new line is not operate or cursor will be blink on that line line only and \n is sequence that represents a new line
#include<studio.h>
Int main()
{
Printf("Welcome to the world of C");
return 0;
}
Output: Welcome to the world of C
Ans:- if \n is not included in the statement then the output will be on the first line of the screen. And curser will blink on the first line.
// Assignment -1//
Ans-
#include<stdio.h>
int main ()
{
printf("Welcome to the world of c\n");
return 0;
}
Output :-Welcome to the world of C
Ans:- \n is not included in the printf statement after execution of the printf function the cursor doesn't move to next line.
// Assignment - 1 //
#incude <studio.h>
int main ()
{
printf( " welcome to the world of c " ) ;
return 0 ;
}
* /output
Welcome to the world of c
*/
Answer : if \n is not included in our program then the cursor blinks on that same line
// Assignment 1//
Ans
#include<stdio.h>
int main()
{
printf("Welcome to the world of c\n");
return 0;
}
/*Output= Welcome to the world of c */
Ans=\n is not included in the printf statement after execution of the printf function the cursor doesn't move to the new line ( next line) .\n signifies new line.
//Assignment-1//
#include<studio.h>
int main()
{
Printf("Welcome to the world of C");
return 0;
}
/*Output=Welcome to the world of C*/
Ans:- if \n is not included in the statement then the output will be on the first line of the screen. And curser will blink on the first line.
//assignment 1
#include<stdio.h>
int main()
{
Print("welcome to the world of c");
return 0;
}
//Output: welcome to the world of c
Ans: cursor will blink on that line only
<hr>
//assignment 1
#include<stdio.h>
Int main()
{
Print f("welcome to the world of c");
return 0;
}
//Output: welcome to the world of c
And: cursor will blink on the link only.
//assignment 1
//Welcome to the world of c
#include<stdio.h>
int main()
{
Printf("welcome to the world of c");
return 0;
}
//Output: welcome to the world of c
Ans: cursor will blink on that line only
//assignment 1
//Welcome to the world of c
#include<stdio.h>
int main()
{
Printf("welcome to the world of c");
return 0;
}
//Output: welcome to the world of c
Ans: cursor will blink on that line only
//Assignment 1//
Ans-
#include<studio.h>
int main()
{
Printf("welcome to the world of c");
return 0;
}
/*Output
Welcome to the world of c
*/
And:- cursor will blink on that line only
//Assignment 1
#include<stdio.h>
int main ()
{
Printf("Welcome to the world of C");
return 0;
}
/*Output
Welcome to the world of C*/
Ans:. If \n is not included in the printf
Statment, then curosr will blink
on that line only and next statment will be printed on same line.
Assignment 1
#include<stdio.h>
#include<conio.h>
{
printf("Welcome to the world of C\n");
return 0;
}
//output : Welcome to the world of C
Ans: Cursor will blink on that line only.
//Assignment-1//
#include<stdio.h>
int main()
{
printf("Welcome to the World of C");
return 0;
}
/*Output
Welcome to the world of C*/
Ans: If \n is not used in printf statement, curser will blink on the same line & next statement is printed on the same line.
//Assignment-1//
#include<studio.h>
int main()
{
printf("Welcome to the World of C");
}
/*Output
Welcome to the World of C*/
Ans: Cursor will blink on that line only
//Assignment-1//
#include<stdio.h>
int main()
{
printf("Welcome to the World of C");
return 0;
}
/*Output
Welcome to the world of C*/
Ans: If \n is not used in printf statement, curser will blink on the same line & next statement is printed on the same line.
//Assignment-1
#include<stdio.h>
int main()
{
Printf("Welcome to the World of C");
return 0;
}
//Output :Welcome to the World of C
Answer :if \n is not used in printf statement,cursor will blink on the same line & next statement will get printed on the same line.
//Assignment :- 1//
#include<studio.h>
int main()
{
Printf(" Welcome to the world of C") ;
return 0 ;
}
/* Output :-" Welcome to the world of C" */
ANS :- " \n" is used in print f statement to print output on the next line. If "\n" is not included in the print f statement then, curser will blink on the same line and next statement will printed on the same line.
//Assignment-1
#include<studio.h>
int main()
{
printf("Welcome to the World of C");
}
/*Output
Welcome to the World of C*/
Ans: Cursor will blink on that line only
// Assignment 1
#include<stdio.h>
void main()
{
printf("Welcome To The World Of C");
}
output-Welcome To The World Of C
Ans- cursor will blink on the same line and the next statements will be printed on the same line
//ASSINGMENT-1
#inclide<studio.h>
int main()
{
Printf("Welcome To The World Of C");
}
Output-- Welcome To The World Of C
Ans- \n is not use then the cursor will blink on the same line and the statement will print on same line
//ASSIGNMENT-1
#include <stdio.h>
int main()
{
printf("welcome to the world of c /n");
return 0;
}
output: welcome to the world of c /n
Ans: if /n is not include in printf statement then the cursor will blink on same line and the statememt will print same
// MY FIRST PROGRAM IN C++
# include <iostream>
using namespace std;
int main()
{
<span style="white-space:pre"> </span>cout <<"your name and city /n";
<span style="white-space:pre"> </span>return 0;
}
output: your name and city /n
// welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
/*Output
welcome to the world of c
*/
//assignment 1
// welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c");
return 0;
}
output : welcome to the world of c
<font size="3">#include<stdio.h></font>
<font size="3">#include<conio.h></font>
<font size="3">int main()</font>
<font size="3">{</font>
<font size="3">printf("welcome to the world of c\n");</font>
return 0;
}
<font size="3">
</font>
</font>
<font size="3">#include<stdio.h></font>
<font size="3">#include<conio.h></font>
<font size="3">int main()</font>
<font size="3">{</font>
<font size="3">printf("welcome to the world of c\n");</font>
return 0;
}
<font size="3">
</font>
</font>
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world of c ");
return 0;
}
Output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world c");
return 0;
}
output
welcome to the world c
#include<stdio.h>
int main()
{
printf("welcome to the world of c");
return 0;
}
output
welcome to the world of c
#include<stdio.h>
int main()
{
printf("welcome to the world c");
return 0;
}
output
welcome to the world c
#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
output:
welcome to c world
#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
output:
welcome to c world
#include<stdio.h>
int main()
{
printf("welcome to c world");
return 0;
}
output:
welcome to c world
Login to add comment