Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged output
1
vote
1
answer
1
GO Classes 2023 | IIITH Mock Test 2 | Question: 60
What will be the output of the following C program?(Assume $\textsf{IEEE-754}$ standard being Used) #include<stdio.h> int main() { float a = 8.0625; if(a == 8.0625) { printf("1"); } else { printf("0"); } } $1$ $0$ run time error both $0$ and $1$ will be printed
GO Classes
asked
in
Programming
Apr 8
by
GO Classes
207
views
goclasses2023-iiith-mock-2
goclasses
programming
programming-in-c
output
1-mark
1
vote
0
answers
2
GO Classes 2023 | IIITH Mock Test 1 | Question: 6
What will be the output of the following C program? #include<stdio.h> int main(){ int x=3; int y; switch(x++){ x++; case 3: printf("Three %d",x); break; case 4: printf("Four %d",x); break; case 5: printf("Five %d",x); break; default: printf("Default %d",x); } } Three $3$ Four $4$ Three $4$ Four $5$
GO Classes
asked
in
Programming
Mar 26
by
GO Classes
221
views
goclasses2023-iiith-mock-1
goclasses
programming
programming-in-c
output
1-mark
2
votes
2
answers
3
GATE CSE 2023 | Question: 25
The integer value printed by the $\textsf{ANSI-C}$ program given below is _______________ #include<stdio.h> int funcp(){ static int x = 1; x++; return x; } int main(){ int x,y; x = funcp(); y = funcp()+x; printf("%d\n", (x+y)); return 0; }
admin
asked
in
Programming
Feb 15
by
admin
2.0k
views
gatecse-2023
programming
programming-in-c
output
numerical-answers
1-mark
0
votes
1
answer
4
Made Easy test series
answer given is 33
TusharKumar
asked
in
Programming
Jan 31
by
TusharKumar
262
views
programming-in-c
output
made-easy-test-series
0
votes
0
answers
5
A majority function is generated in a combinational circuit when the output is equal to 1 if the input variables have more 1’s than 0’s. The output is 0 otherwise. Make a 3-input majority function.
M.Zain
asked
in
Digital Logic
Dec 31, 2022
by
M.Zain
309
views
digital-logic
combinational-circuit
output
0
votes
0
answers
6
A sequential circuit has two D flip-flops, two inputs x and y, and one output Z is specified by the following next-state and output equations A(t+1) = xy’ + x B B(t+1) = xA +xB’ Z = A (a) Draw the logic diagram of the circuit. (b) List the state table for the sequential circuit. (c) Draw the corresponding state diagram.
M.Zain
asked
in
Digital Logic
Dec 30, 2022
by
M.Zain
272
views
digital-logic
sequential-circuit
output
0
votes
1
answer
7
Unacacdemy AIMT 2
can anyone explain how the for loop works here..?
TusharKumar
asked
in
Programming
Dec 22, 2022
by
TusharKumar
223
views
programming-in-c
output
loop
0
votes
0
answers
8
Class P { void f(int i) { print(i); } } Class Q subclass of P { void f(int i) { print(2*i); } } Now consider the following program fragment: P x = new Q(); Q y = new Q(); P z = new Q(); x.f(1); ((P)y).f(1); z.f(1); Here ((P)y) denotes a typecast of y to P. The output produced by executing the above program fragment will be (A) 1 2 1 (B) 2 1 1 (C) 2 1 2 (D) 2 2 2
Jeetmoni saikia
asked
in
Programming
Oct 16, 2022
by
Jeetmoni saikia
187
views
programming-in-c
output
normal
0
votes
1
answer
9
yashwant kanetkar chapter 5 A(F) 18th edition
i dont know why the answer is not coming for the following snippet. I COULD NOT UNDERSTAND EXPLAINATION IN YASHWANT KANETKAR BOOK int main() { float x=1.1; while(x==1.1) { printf(“%f\n”,x); x=x-0.1; } return0; }
SHWETAV SUMAN
asked
in
Programming
Oct 14, 2022
by
SHWETAV SUMAN
120
views
programming-in-c
output
reference-book
3
votes
1
answer
10
GO Classes Scholarship 2023 | Test | Question: 14
Consider the following C program given below. #include<stdio.h> main() { int a = 4; switch (a) { a--; case 4: printf("Science "); break; default: printf("Technology "); case ... ;Philosophy"); } } What will be the output of the program? Science Knowledge Philosophy Technology Knowledge Philosophy Science Knowledge
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
432
views
goclasses-scholarship-test1
goclasses
programming
programming-in-c
output
1-mark
2
votes
3
answers
11
GO Classes Scholarship 2023 | Test | Question: 26
What will be the output of the following C program? int sum = 0; for (int i = 1; i <= 10; i++) for (int j = 1; j <= 10; j++){ sum += i * j; }
GO Classes
asked
in
Programming
Aug 7, 2022
by
GO Classes
268
views
goclasses-scholarship-test1
numerical-answers
goclasses
programming
programming-in-c
output
2-marks
2
votes
1
answer
12
I am not able to understand how the value of 'i' is 3 after the execution of the program, it must be 2.
Hrithik Vashishtha
asked
in
Programming
Jul 4, 2022
by
Hrithik Vashishtha
238
views
programming-in-c
output
1
vote
1
answer
13
Can anyone explain the conclusion of the outputs ?
int main() { int x=5,*p; p=&x; *p=x++ + *p; printf ("%d %d",x,*p); } We have this program now here *p= 5++ + (*p) -> *p= 5 + 5 =10 so x location is 10 and then the postfix x++= 10+1=11 so output is 11 11 ... 5 , Here x is not incrementing later . *p= x++ + 5; *p= 5+5=10 output 10 10 , when x is not taking the postfix increment ???
Rajib Datta Roy
asked
in
Programming
Jun 2, 2022
by
Rajib Datta Roy
313
views
programming-in-c
output
4
votes
3
answers
14
GO Classes Weekly Quiz 2 | Programming in C | Propositional Logic | Question: 2
What will be output printed by the following program? #include<stdio.h> main() { int c=4; switch(c) { c=c-1; case 4: printf("IITB "); break; default: printf("IISc "); case 3: printf("IITM " ... ;); } } $\text{IITB IITM}$ $\text{IITB IISc IITM}$ $\text{IITB}$ $\text{IITB IITM IITD}$
GO Classes
asked
in
Programming
May 2, 2022
by
GO Classes
602
views
goclasses_wq2
goclasses
programming
programming-in-c
output
1-mark
5
votes
2
answers
15
GO Classes Weekly Quiz 2 | Programming in C | Propositional Logic | Question: 3
Trace the execution of the following if statements and select the output from this code fragment int main() { int a = 3, b = 7 ; if ( (a + b) % 2 != 0 ) { printf("tetrahedron\n" ... a ) { printf("octahedron\n"); } else { printf("dodecahedron\n"); } } Tetrahedron Cube Octahedron Dodecahedron
GO Classes
asked
in
Programming
May 2, 2022
by
GO Classes
448
views
goclasses_wq2
goclasses
programming
programming-in-c
output
1-mark
1
vote
1
answer
16
GO Classes Test Series 2024 | Programming | Test 3 | Question: 23
What will be the output of the following lines of code? int i = 0; int j = 0; char *s = "ceded"; while (s[i] != '\0') { j = j + s[i] - 'b'; i = i + 1; } printf("%d %d\n", i, j); $5\; 11$ $4\; 16$ $5\; 16$ $4 \;11$
GO Classes
asked
in
Programming
Apr 30, 2022
by
GO Classes
60
views
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
loop
output
2-marks
7
votes
1
answer
17
GO Classes Test Series 2024 | Programming | Test 2 | Question: 6
What will be output if we compile and execute the following C code? #include<stdio.h> void main(){ int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater than"); else printf("Less than"); } Equal Greater than Less than Compiler error
GO Classes
asked
in
Programming
Apr 24, 2022
by
GO Classes
264
views
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
1-mark
2
votes
1
answer
18
GO Classes Test Series 2024 | Programming | Test 2 | Question: 7
What will be the output if you compile and execute the following C code? int extern x; void main() { printf("%d",x); x=2; } int x=23; $0$ $2$ $23$ Compiler error
GO Classes
asked
in
Programming
Apr 24, 2022
by
GO Classes
213
views
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
1-mark
6
votes
1
answer
19
GO Classes Test Series 2024 | Programming | Test 2 | Question: 8
Consider below two files p$1$.c and p$2$.c We compile both files independently and link them in case the compilation is successful. Which of the following(s) is/are TRUE? p$1$.c can not be compiled as there is no ... error since the extern does not allocate memory to variables. Line $7$ in p$2$.c will produce a compilation error.
GO Classes
asked
in
Programming
Apr 24, 2022
by
GO Classes
260
views
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
multiple-selects
1-mark
3
votes
1
answer
20
GO Classes Test Series 2024 | Programming | Test 2 | Question: 9
What will be the output of running file main.c? write.c *********************** extern int count; void write_extern() { count +=2; } main.c *********************** #include "write.c" #include<stdio.h> int count = 5; main() { write_extern(); write_extern(); printf("%d", count); } $0$ $5$ $9$ None of these
GO Classes
asked
in
Programming
Apr 24, 2022
by
GO Classes
153
views
goclasses2024-programming-2-weekly-quiz
goclasses
programming
programming-in-c
storage-classes-in-c
output
1-mark
Page:
1
2
3
4
5
6
...
11
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
GO Classes NIELIT Test Series For 2023
Interview Experience : MTech Research(Machine Learning) at IIT Mandi
DRDO Scientist -B
ISRO Scientist-B 2023
BARC RECRUITMENT 2023
Subjects
All categories
General Aptitude
(2.8k)
Engineering Mathematics
(9.7k)
Digital Logic
(3.4k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.7k)
Non GATE
(1.4k)
Others
(2.4k)
Admissions
(667)
Exam Queries
(1.0k)
Tier 1 Placement Questions
(17)
Job Queries
(77)
Projects
(9)
Unknown Category
(867)
Recent questions tagged output
Recent Blog Comments
Left with 10days, nothing heard back from them,...
I have updated the blog. Thanks for mentioning it.
Mtech(RA) CSE IIT Bombay Project 14 ?
Thanks man @ijnuhb because of u i cleared...
Yes : 720 General