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
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
5
votes
2
answers
101
Gate@Zeal Workbook - C programming
What will be the output of the following code? _______ #include <stdio.h> int main(){ char val=250; int ans; ans= val+ !val + ~val + ++val; printf("%d", ans); return 0; }
saurabh0709
asked
in
Programming in C
Aug 1, 2023
by
saurabh0709
1.1k
views
zeal
programming-in-c
operator-precedence
1
vote
2
answers
102
Loops (while and for)
In the picture below: Can anyone explain to me why while' loop starting from 2 but in the case of for' loop it is starting from 1 (although i++ is available for both in Program 1 and Program 2) and also in the case of while' loop the outputs are ... ' loop the outputs are same although in Program 2 it is post increment (i++) and in Program 4 it is pre increment (++i).
Gopal6854
asked
in
Programming in C
Jul 29, 2023
by
Gopal6854
557
views
programming
loop
2
votes
1
answer
103
Arrays || C Programming
# include <stdio.h> void print(int arr[]) { int n = sizeof(arr)/sizeof(arr[0]); int i; for (i = 0; i < n; i++) printf("%d ", arr[i]); } int main() { int arr[] = {1, 2, 3, 4, 5, 6, 7, 8}; print(arr); return 0; } On GFG output is 1 2 I can’t understand the solution. Help would be appreciated!!
Sparsh-NJ
asked
in
Programming in C
Jul 29, 2023
by
Sparsh-NJ
1.2k
views
array
programming-in-c
0
votes
1
answer
104
UGC NET CSE | June 2023 | Part 2: 9
Consider a hash table of size seven with starting index zero and a hash function $(6 x+3) \bmod 4$. Assuming the hash table is initially empty. Which of the following is the content of the table when the sequence $1,3,8,10,5$, is inserted into the table using closed hashing? Here " denotes ... $3,8,1,$_,$10,5$ _,$3,8,1$,_,$10,5$ _$1,3,8,10,5$,_
admin
asked
in
DS
Jul 28, 2023
by
admin
667
views
ugcnetcse-june2023-paper2
data-structures
hashing
3
votes
1
answer
105
C programming | Union
What is the output of the code given below? #include <stdio.h> #include <string.h> union sample { int i; float f; char c; double d; char str[20]; }; int main() { // union sample sm; printf("Memory size occupied by sample : %d", sizeof(union sample)); return 0; }
arpit.bagri
asked
in
Programming in C
Jul 26, 2023
by
arpit.bagri
656
views
programming-in-c
0
votes
1
answer
106
Self Doubt
How are two numbers(int) generally stored in computers ?
Psy Duck
asked
in
Programming in C
Jul 22, 2023
by
Psy Duck
304
views
#programming
#number_representation
0
votes
1
answer
107
Self Doubt
I have a doubt on simple Queue Implementation by an array Assume Queue is full(of n size),Front is pointing to first element and Rear is pointing to last element If we dequeue the element then front's element will get deleted, Now do we have to ... space is empty) I am not talking about circular queue concept,I am just talking about simple queue implementation using array(Not circular).
viral8702
asked
in
DS
Jul 22, 2023
by
viral8702
318
views
queue
self-doubt
data-structures
0
votes
2
answers
108
self doubt
#include <stdio.h> int main() { int x = -5, y = 8; x = x + y - (y = x); printf("%d", x * y); return 0; } what will be the o/p for this? and what is the logic?
Pradeep_Kumar
asked
in
Programming in C
Jul 20, 2023
by
Pradeep_Kumar
423
views
0
votes
1
answer
109
a sequential access file has a fixed size of 25 byte records. What is the logical location of the first byte of record 5?
Harsh007
asked
in
Programming in C
Jul 19, 2023
by
Harsh007
1.0k
views
programming
1
vote
1
answer
110
Arrays, Storage classes
Can an array store elements of different storage classes?
Sparsh-NJ
asked
in
Programming in C
Jul 15, 2023
by
Sparsh-NJ
361
views
array
storage-classes-in-c
1
vote
2
answers
111
Functions and storage classes, Gate Wallah Practice Sheet,
I am getting (b) 5 ?? Can you please explain the_ int i_ in for loop and display() [MCQ] 44. Consider the following function: void display() { static int i; if(i<=printf("GATE24")) { i=i+2; display(); } } int main() { int i=0; ... ;3;i++) display(); return 0; } The number of times printf() executed is- (a) 6 (b) 5 (c) 7 (d) 9
gagan55
asked
in
Programming in C
Jul 15, 2023
by
gagan55
577
views
programming-in-c
storage-classes-in-c
0
votes
1
answer
112
self-doubt Data structure Linked list. Inserting a node at the beginning of a linked list
How to Visualize this code ? #include<stdio.h> #include<stdlib.h> struct node{ int data; struct node *next; }; void addFirst(struct node **head,int val){ struct node *newNode =malloc(sizeof(struct node ... ); addFirst(&head,30); addFirst(&head,40); addFirst(&head,50); printList(head); }
gagan55
asked
in
DS
Jul 13, 2023
by
gagan55
881
views
data-structures
linked-list
0
votes
1
answer
113
what is load factor
Gaurav Kadyan
asked
in
DS
Jul 13, 2023
by
Gaurav Kadyan
177
views
data-structures
1
vote
1
answer
114
made easy workbook
Anmol pratap singh
asked
in
DS
Jul 8, 2023
by
Anmol pratap singh
586
views
made-easy-booklet
array
0
votes
0
answers
115
ISRO2020-62
#include int main() { int x; char *ptr; x=622,100,101; printf("%d",(*(char *)&x)*(x%3)); return 0; } In this question what is the meaning of “ *(char *)&x “ ? please explain it.
closed
Ray Tomlinson
asked
in
Programming in C
Jul 5, 2023
by
Ray Tomlinson
858
views
isro-2020
programming-in-c
pointers
programming
0
votes
1
answer
116
Go Class data structure asymptotic notation practice video question 21
I have specific doubt on this question and I’ve tried to explain that in the picture , If anyone can explain it then it’ll be of great help. according to sachin sir the answer should be false( fyi).
kickassakash
asked
in
DS
Jul 4, 2023
by
kickassakash
405
views
asymptotic-notation
goclasses
data-structures
0
votes
0
answers
117
Gate Overflow Test series
Can anyone explain this question to me
priyansh_1705
asked
in
Programming in C
Jul 3, 2023
by
priyansh_1705
388
views
linked-list
data-structures
1
vote
2
answers
118
Self doubt
#include<stdio.h> void dynamic(int s, ...) { printf("%d ", s); } int main() { dynamic(2, 4, 6, 8); dynamic(3, 6, 9); return 0; }
Jeetmoni saikia
asked
in
Programming in C
Jun 20, 2023
by
Jeetmoni saikia
319
views
5
votes
3
answers
119
Unacademy Weekly Test
Consider the following program, what will be the output? #include<stdio.h> void main() { int a; a = printf("2>5") > printf("2<5") ? printf("2")!=printf("20")?printf("GA"):printf("2022"):10?2!=2>5?!2?40:!2!=3?50:60:70:80; printf("%d",a); } Options: 50 60 70 None of These Answer: b. 50
lovish_bhatia
asked
in
Programming in C
Jun 11, 2023
by
lovish_bhatia
801
views
programming-in-c
0
votes
0
answers
120
Ace test series
What is the smallest and largest number of entries for 2-3 BTree (B2-3 Tree) of height 8 (i.e., 8 levels) ? 255 and 6560 127 and 2186 6561 and 255 255 and 2186
none30
asked
in
DS
Jun 11, 2023
by
none30
434
views
ace-test-series
data-structures
binary-tree
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
309
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)
Programming
(4.1k)
DS
(2.0k)
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 in Programming and DS
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:...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Aptitude Overflow