C PROGRAMMING
Open in Telegram
No data
Subscribers
-824 hours
-347 days
+8830 days
Posts Archive
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;
}
βοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈ
https://t.me/addlist/aBj0kbGVJz01NTg1
βοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈβοΈ
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;
