C PROGRAMMING
Відкрити в Telegram
Немає даних
Підписники
-824 години
-347 днів
+8830 день
Архів дописів
What will be the output of given code:-
#include <stdio.h>
int sum(int,int);
int main(){
int x =5;
int y =4;
printf("The value of x + y is %d\n",sum(x,y));
printf("The value of x and y is %d and %d", x,y);
return 0;
}
int sum(int a,int b){
a = 56;
return a+b;
}
A) The value of x+y is 9
The value of x and y is 5 and 4
B) The value of x+y is 60
The value of x and y is 5 and 4
C) The value of x+y is 60
The value of x and y is 56 and 4
D) None of these
👈👈👈👈👈👈👈👈👈👈
🆕🆕🆕🆕🆕🆕🆕🆕🆕🆕
Try this crypto currency telegram verified bot and convert Star ⭐ into TON coin
https://t.me/major/start?startapp=6314368173
‼️Question- 2 of the Day ‼️
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 1.0, y = 3.9;
switch(x<y)
{
case 1:
printf("Quiz Dost!");
break;
case 2:
printf("Thanks World!");
break;
default:
printf("invalid");
}
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐ C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══
‼️Question-1 of the Day ‼️
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 1.0, y = 3.9;
switch(x)
{
case 1:
printf("Quiz Dost!");
break;
case 2:
printf("Thanks World!");
break;
default:
printf("invalid");
}
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══
‼️Question of the Day ‼️
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 0.7;
if(x==0.7)
{
printf("Thanks Workd!");
}
else
printf(" Quiz Dost!");
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐ C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══
‼️Question- 2 of the Day ‼️
(11 - 10 - 2022)
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 1.0, y = 3.9;
switch(x<y)
{
case 1:
printf("Quiz Dost!");
break;
case 2:
printf("Thanks World!");
break;
default:
printf("invalid");
}
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐ C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══
‼️Question-1 of the Day ‼️
(11 - 10 - 2022)
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 1.0, y = 3.9;
switch(x)
{
case 1:
printf("Quiz Dost!");
break;
case 2:
printf("Thanks World!");
break;
default:
printf("invalid");
}
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══
‼️Question of the Day ‼️
(10 - 10 - 2022)
👨💻 Output of the code :- 👨💻
#include<stdio.h>
int main()
{
float x = 0.7;
if(x==0.7)
{
printf("Thanks Workd!");
}
else
printf(" Quiz Dost!");
return 0;
}
══━━━━━━✧❂✧━━━━━━══
⭐ C PROGRAMMING⭐
══━━━━━━✧❂✧━━━━━━══Output of the code :-
#include<stdio.h>
int main()
{
int a = 10;
if(a = 11){
printf("I am 11");
}
else{
printf("I am 10");
}
return 0;
}
In a code value assigned to b and c are 3 and 5 respectively then value of a if it is given that :→ int a = (c ==b)?3:7;
