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
0
votes
1
answer
91
NIELIT 2017 OCT Scientific Assistant A (IT) - Section C: 1
The question is based on the following program fragment. f(intY[10],int x){ int u,j,k; i=0;j=9; do{ k=(i+j)/2; if(Y[k] < x) i=k; else j=k; } while((Y[k]!=x) && (i<j)); if (Y[k]==x) printf( x is in the array. ); else printf ... $x>2$ $Y$ is $[2\;4\;6\;8\;10\;12\;14\;16\;18\;20]$ and $2<x<20$ and $'x'$ is even
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
961
views
nielit2017oct-assistanta-it
programming-in-c
output
1
vote
2
answers
92
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 1
What will be the output of following? main() { Static int a = 3; Printf(“%d”,a--); If(a) main(); } $3$ $3\;2\;1$ $3\;3\;3$ Program will fall in continuous loop and print $3$
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
817
views
nielit2017oct-assistanta-it
programming-in-c
output
0
votes
0
answers
93
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 13
The following program fragment prints int i = 5; do { putchar(i+100); printf(“%d”, i--;) } while(i); i5h4g3f2el 14h3g2f1e0 An error message None of the above
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
562
views
nielit2017oct-assistanta-it
programming-in-c
output
3
votes
1
answer
94
NIELIT 2017 OCT Scientific Assistant A (CS) - Section C: 3
The following program fragment prints int i = 5; do { putchar(i+100); printf(“%d”, i--;) } while(i); i5h4g3f2el 14h3g2f1e0 An error message None of the above
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
944
views
nielit2017oct-assistanta-cs
programming-in-c
output
1
vote
3
answers
95
NIELIT 2017 OCT Scientific Assistant A (CS) - Section C: 11
What will be the output of following? main() { Static int a = 3; Printf(“%d”,a--); If(a) main(); } $3$ $3\;2\;1$ $3\;3\;3$ Program will fall in continuous loop and print $3$
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
703
views
nielit2017oct-assistanta-cs
programming-in-c
output
1
vote
1
answer
96
NIELIT 2017 OCT Scientific Assistant A (CS) - Section B: 6
The question is based on the following program fragment. f(intY[10],int x){ int u,j,k; i=0;j=9; do{ k=(i+j)/2; if(Y[k] < x) i=k; else j=k; } while(Y[k]!=x) && (i<j)); if (Y[k]==x) printf( x is in the array. ); else printf( ... $x>2$ $Y$ is $[2\;4\;6\;8\;10\;12\;14\;16\;18\;20]$ and $2<x<20$ and $'x'$ is even
admin
asked
in
Programming in C
Apr 1, 2020
by
admin
795
views
nielit2017oct-assistanta-cs
programming-in-c
output
4
votes
1
answer
97
NIELIT 2016 MAR Scientist B - Section C: 15
Output of the following loop is for(putchar('c');putchar ('a');putchar('r')) putchar('t'); a syntax error. cartrt. catrat. catratratratrat...
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
3.3k
views
nielit2016mar-scientistb
programming-in-c
output
5
votes
1
answer
98
NIELIT 2016 DEC Scientist B (CS) - Section B: 8
What will be output if you will compile and execute the following C code? void main(){ char c=125; c=c+10; printf("%d",c); } $135$ $115$ $-121$ $-8$
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
1.2k
views
nielit2016dec-scientistb-cs
programming-in-c
output
4
votes
7
answers
99
NIELIT 2016 DEC Scientist B (CS) - Section B: 13
What will be output if you will compile and execute the following C code? void main() { printf("%d",sizeof(5.2)); } $4$ $8$ $2$ $16$
admin
asked
in
Programming in C
Mar 31, 2020
by
admin
2.5k
views
nielit2016dec-scientistb-cs
programming-in-c
output
2
votes
2
answers
100
NIELIT 2017 July Scientist B (IT) - Section B: 32
Output of following program #include<stdio.h> int main() { int i=5; printf("%d %d %d", i++,i++,i++); return 0; } $7\:6\:5$ $5\:6\:7$ $7\:7\:7$ Compiler Dependent
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
1.0k
views
nielit2017july-scientistb-it
programming-in-c
output
3
votes
1
answer
101
NIELIT 2017 July Scientist B (IT) - Section B: 33
Output of following program? #include<stdio.h> void dynamic(int s,...) { printf("%d",s); } int main() { dynamic(2,4,6,8); dynamic(3,6,9); return 0; } $2\:3$ Compiler Error $4\:3$ $3\:2$
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
1.7k
views
nielit2017july-scientistb-it
programming-in-c
output
4
votes
1
answer
102
NIELIT 2017 July Scientist B (IT) - Section B: 36
Assume that size of an integer is $32$ bit. What is the output of following ANSI C program? #include<stdio.h> struct st { int x; static int y; }; int main() { printf(%d",sizeof(struct st)); return 0; } $4$ $8$ Compiler Error Runtime Error
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
2.0k
views
nielit2017july-scientistb-it
programming-in-c
output
3
votes
2
answers
103
NIELIT 2017 July Scientist B (IT) - Section B: 38
Output of the following program? #include<stdio.h> struct st { int x; struct st next; }; int main() { struct st temp; temp.x=10; temp.next=temp; printf("%d",temp.next,x); return 0; } Compiler Error $10$ Runtime Error Garbage Value
admin
asked
in
Programming in C
Mar 30, 2020
by
admin
1.5k
views
nielit2017july-scientistb-it
programming-in-c
output
5
votes
3
answers
104
CIL2020
#include int main( ) { int x=5, y=9; x=(x= x+y)-(y= x-y); printf("%d %d ", x, y); return 0; } A. 9 5 B. 5 14 C. 14 5 D. 5 9
vivek_mishra
asked
in
Programming in C
Mar 5, 2020
by
vivek_mishra
747
views
cprogramming
programming
output
6
votes
1
answer
105
c-programming self doubt
#include<stdio.h> #include<stdlib.h> int main(void) { int maxLineCount = 500, maxCharCount = 500, index, j, count; char *line = NULL; size_t size; char *a[maxLineCount]; for (index = 0; index < maxLineCount; index++) a[index] = ... code is doing. suppose we have 3 string given as input in 3 different lines then how can we access each character of the string?
Satbir
asked
in
Programming in C
Jun 1, 2019
by
Satbir
6.2k
views
programming-in-c
programming
output
2
votes
1
answer
106
Made Easy Test Series:Algorithm-Dijkstra
Which of the following procedure results same output as Dijkstra’s Algo. on unweighted graph on $'n'$ verices? $A)$ BFS $B)$ DFS $C)$Kruskal $D)$ Prims As far I know Dijkstra and Prims both have $T.C.=O(E+VlogV)$ But ans given BFS. How this ans possible??
srestha
asked
in
Algorithms
May 18, 2019
by
srestha
829
views
made-easy-test-series
dijkstras-algorithm
output
0
votes
1
answer
107
Gradeup - Programming in C
What will be the output of the below code? the answer given is E)0 but I am not getting it. #include <stdio.h> void fun(short int *a,char *b) { b += 2; short int *p = (short int*)b; *p = *a; } int main() { void (*fptr)(short int *,char ... printf("%d", arr[3]); return 0; } $A)$ Compilation error. $B) 100$ $C)$ Garbage Value $D)$ Segmentation Fault. $E) 0$
Aishvarya Akshaya Vi
asked
in
Programming in C
May 18, 2019
by
Aishvarya Akshaya Vi
1.2k
views
programming-in-c
output
gradeup
2
votes
2
answers
108
Self Doubt-Programming
Can someone explain the output of this code? and what (char*) is doing actually? #include<stdio.h> struct Ournode{ char x, y, z; }; int main() { struct Ournode p={'1', '0', 'a'+2}; struct Ournode *q=&p; printf("%c, %c", '*((char*)q+1)', '*((char*)q+2)'); return 0; }
srestha
asked
in
Programming in C
May 13, 2019
by
srestha
969
views
programming-in-c
output
self-doubt
0
votes
1
answer
109
Self-Doubt:Program
Can someone tell me, why these two same program giving different output?Is there any problem in code or compiler not producing right? Program1 Program2
srestha
asked
in
Programming in C
May 6, 2019
by
srestha
442
views
programming-in-c
output
0
votes
1
answer
110
#pointer #output #error-assignment-makes-pointer-from-integer-without-a-cast #self-doubt
#include <stdio.h> #include<stdlib.h> int main() { //code char *ptr,s[]="debasree"; ptr=s[0]; printf("%s\n",*ptr); return 0; } I get this warning in geeks for geeks ... explain what is the warning saying? i googled a lot but could not grasp it pls pls pls pls explain...
debasree88
asked
in
Programming in C
Apr 24, 2019
by
debasree88
2.5k
views
pointers
output
Page:
« prev
1
2
3
4
5
6
7
8
9
...
12
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
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged output
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...