Program : Write a function to find maximum of two numbers.
#include <iostream>
using namespace std;
int findMax(int n1 , int n2){
if(n1 > n2){
return n1;
}
return n2;
}
int main() {
int num1,num2;
cout << "Enter any two different numbers:"<<endl;
cin >> num1 >> num2;
int max = findMax(num1,num2);
cout << "Maximum of "<< num1 << " and " << num2 << " is " << max;
return 0;
}
π3
Program : Write a function to find maximum of two numbers.
#include <iostream>
using namespace std;
int findMax(int n1 , int n2){
if(n1 > n2){
return n1;
}
return n2;
}
int main() {
int num1,num2;
cout << "Enter any two different numbers:"<<endl;
cin >> num1 >> num2;
int max = findMax(num1,num2);
cout << "Maximum of "<< num1 << " and " << num2 << " is " << max;
return 0;
}
π3
π Unlock Your Career in C++ & DSA! π
Are you ready to dive into the world of programming? π»β¨ We have the *ultimate* collection of C++ and DSA courses that can set you on the path to success! π
π΅ C++ & C++ with DSA Masterclass
π‘ ALPHA DSA C++ - Stand Out in the Crowd!
π PW C++ DSA - Propel Your Skills!
π₯ Love Babbar Supreme Batch - Learn from the Best!
π DSA by Abdul Bari - Expert Guidance!
β NARESH IT DSA - Proven Techniques!
π± Durgasoft DSA - Grab Your Opportunity!
π€‘ Ashok IT - Fun and Engaging Learning!
Donβt miss out on this incredible opportunity to enhance your skills and boost your career! π
π¬ Message us now at:
@Myhurthearts
@imabhi3030
π Invest in your future today! π
Are you ready to dive into the world of programming? π»β¨ We have the *ultimate* collection of C++ and DSA courses that can set you on the path to success! π
π΅ C++ & C++ with DSA Masterclass
π‘ ALPHA DSA C++ - Stand Out in the Crowd!
π PW C++ DSA - Propel Your Skills!
π₯ Love Babbar Supreme Batch - Learn from the Best!
π DSA by Abdul Bari - Expert Guidance!
β NARESH IT DSA - Proven Techniques!
π± Durgasoft DSA - Grab Your Opportunity!
π€‘ Ashok IT - Fun and Engaging Learning!
Donβt miss out on this incredible opportunity to enhance your skills and boost your career! π
π¬ Message us now at:
@Myhurthearts
@imabhi3030
π Invest in your future today! π
Which of the following is the correct way to write a comment in C?
Anonymous Quiz
55%
// This is a comment
35%
/* This is a comment */
7%
# This is a comment
3%
-- This is a comment
What is the correct format specifier for printing a float in C?
Anonymous Quiz
9%
%d
80%
%f
9%
%c
4%
%s
Which operator is used to access the value at the address stored in a pointer?
Anonymous Quiz
38%
&
43%
*
11%
@
9%
#
Which keyword is used to define a constant in C?
Anonymous Quiz
23%
constant
8%
define
63%
const
6%
static
What are assignment operator ?
Anonymous Quiz
48%
=
12%
& , || , !=
30%
< , > <= , >=
10%
+ , - , * / , %
π1
π Unlock Your Career in C++ & DSA! π
π΅
π Invest in your future today! π
Join for Free Course β https://t.me/addlist/vnAFuK9rY6FjNjM1
Are you ready to dive into the world of programming? π»β¨ We have the *ultimate* collection of C++ and DSA courses that can set you on the path to success! π
π΅
C++ & C++ with DSA Masterclass
π‘ ALPHA DSA C++ - Stand Out in the Crowd!
π PW C++ DSA - Propel Your Skills!
π₯ Love Babbar Supreme Batch - Learn from the Best!
π DSA by Abdul Bari - Expert Guidance!
β NARESH IT DSA - Proven Techniques!
π± Durgasoft DSA - Grab Your Opportunity!
π€‘ Ashok IT - Fun and Engaging Learning!
Ineuron All DSA course & 10+ more DSA courses
Donβt miss out on this incredible opportunity to enhance your skills and boost your career! π
π¬ Message us now at:
@Myhurthearts
@imabhi3030
π Invest in your future today! π
Join for Free Course β https://t.me/addlist/vnAFuK9rY6FjNjM1
π1
Forwarded from πα΄α΄
α΄Ι΄ πα΄ΚΙͺΙ΄α΄
α΄ (πα΄α΄
α΄Ι΄ πα΄ΚΙͺΙ΄α΄
α΄)
Dear Subscribers,
We sincerely apologize for the recent issues on our channel. Unfortunately, due to an illegal bot attack that sent inappropriate content during the night, one of our C programming channels was banned, and another faced serious trouble but has now been recovered.
We take full responsibility for this and deeply regret any inconvenience or discomfort caused. We are working harder to improve our security and prevent this from happening again.
Thank you for your understanding and continued support. π
π3π«‘3
C LANGUAGE short important notes
β€4π₯1