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 array
5
votes
1
answer
1
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 16
Consider the following C code: double A[2][3] = {{1, 2, 3}, {4, 5, 6}}; Assume that A[0] = 0xFFAA0000 and the sizeof(double) is 8. What will be the value of `A[1]`? 0xFFAA0024 0xFFAA0003 0xFFAA000C 0xFFAA0018
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
457
views
goclasses2024-mockgate-14
programming
programming-in-c
array
1-mark
1
vote
1
answer
2
Array, Memory Allocation
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
Mrityudoot
asked
in
Programming in C
Feb 2
by
Mrityudoot
233
views
memory-management
programming-in-c
array
1
vote
1
answer
3
Array
Does C support fractional Indices? float x = some fraction; Is float a[x] valid declaration?
Mrityudoot
asked
in
Programming in C
Feb 2
by
Mrityudoot
119
views
array
programming-in-c
3
votes
1
answer
4
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 47
#include<stdio.h> #include<string.h> char upstr[50]; void putStar (int n,char str[]){ upstr[n] = str[n]; if(n == strlen(str)) return; else upstr[n+1] = '*'; putStar(n+1,str); } int main() { char str[] = "hello"; ... ;, upstr); } What will be the output of the given program? h*e*l*l*o h*e*l*l*o* h*e*l*l* hello
GO Classes
asked
in
Programming in C
Jan 28
by
GO Classes
291
views
goclasses2024-mockgate-13
goclasses
programming
programming-in-c
array
2-marks
6
votes
1
answer
5
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 14
What will be the output of the following program? main() { int a[2][2] = { {1,2},{3,4} }; int(*p)[2][2]; p = &a; printf("%d", (*p)[0][0]); } $1$ $3$ $4$ None of these
GO Classes
asked
in
Programming in C
Jan 21
by
GO Classes
390
views
goclasses2024-mockgate-12
goclasses
programming
programming-in-c
array
output
1-mark
3
votes
3
answers
6
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 47
What will be the output of the following program? #include<stdio.h> void swap(char **s1, char **s2){ char *tmp; tmp=*s1; *s1=*s2; *s2=tmp; } int main() { char *str[3]= {"orange", "apple", ... %s %s", strs[0], strs[1], strs[2]); } pear apple orange apple pear orange orange apple pear apple orange pea
GO Classes
asked
in
Programming in C
Jan 13
by
GO Classes
316
views
goclasses2024-mockgate-11
goclasses
programming
programming-in-c
array
array-of-pointers
2-marks
1
vote
1
answer
7
UGC NET CSE | June 2008 | Part 2 | Question: 23
Which of the following is true for a sorted list with ' $n$ ... $\mathrm{O}(\log n)$ time.
admin
asked
in
Others
Jan 7
by
admin
117
views
ugcnetcse-june2008-paper2
sorting
array
time-complexity
1
vote
1
answer
8
3 Dimensional Array
How is the address written for 3-dimensional arrays? In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow?? Also, how are these arrays stored in the memory?? Please answer
amitarp818
asked
in
Programming in C
Oct 25, 2023
by
amitarp818
406
views
programming-in-c
array
2
votes
1
answer
9
Made Easy Test Series
You are given an array of elements where each array element represents the MAXIMUM number of jumps that can be made in the forward direction from that element. Now, consider the following array: {1, 3, 5, 8, 9, 2, 6, 7, 6). What is the minimum number of jumps required to reach the end of the array?
Ray Tomlinson
asked
in
Algorithms
Aug 9, 2023
by
Ray Tomlinson
822
views
made-easy-test-series
made-easy-booklet
algorithms
data-structures
array
algorithm-design
2
votes
1
answer
10
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.1k
views
array
programming-in-c
1
vote
1
answer
11
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
347
views
array
storage-classes-in-c
1
vote
1
answer
12
made easy workbook
Anmol pratap singh
asked
in
DS
Jul 8, 2023
by
Anmol pratap singh
570
views
made-easy-booklet
array
3
votes
2
answers
13
In QuickSort algorithm, which of the following statements is NOT true regarding the partition process?
dhruba
asked
in
Algorithms
Jun 6, 2023
by
dhruba
962
views
algorithms
quick-sort
time-complexity
array
0
votes
1
answer
14
DRDO INTERVIEW..
We have stored an element after a few elements in an array, where the array size is unknown, then find the position of in array.
Saurabhgate2024
asked
in
Programming in C
May 14, 2023
by
Saurabhgate2024
447
views
programming
array
3
votes
2
answers
15
GO Classes 2023 | IIITH Mock Test 1 | Question: 8
If we have an array of size $\mathrm{N}$ with only $3$ different values for its elements, what is the probability that the first partition results in a completely sorted array? Assume there are an equal number of each element in the array. $1 / 2$ $1 / 3$ $1 / 4$ $2 / 3$
GO Classes
asked
in
Algorithms
Mar 26, 2023
by
GO Classes
611
views
goclasses2023-iiith-mock-1
goclasses
algorithms
sorting
array
1-mark
1
vote
1
answer
16
GO Classes 2023 | IIITH Mock Test 1 | Question: 15
In an array-based implementation of a Heap, the right-child of the right-child of the node at index $i,$ if it exists, can be found at what array location? Index of the array starts from $1.$ $4i + 3$ $2i + 1$ $4i + 1$ $2i + 2$
GO Classes
asked
in
DS
Mar 26, 2023
by
GO Classes
795
views
goclasses2023-iiith-mock-1
goclasses
data-structures
array
heap
binary-heap
1-mark
1
vote
1
answer
17
Array P&DS | Time Complexity
What is the worst case time complexity of an efficient algorithm (in order of n) to get the last index for an actually filled element, in an array, given the condition that we may not fill the entire initialized array with elements, the array is initialized as “int a[n]; ” [Array may not be filled in a sorted order] O(n) O(1) O(log(n)) O($n^2$)
Souvik33
asked
in
DS
Dec 17, 2022
by
Souvik33
642
views
algorithms
time-complexity
array
0
votes
1
answer
18
Algorithms
What is the logic applied here.
Overflow04
asked
in
Algorithms
Oct 20, 2022
by
Overflow04
496
views
algorithms
test-series
array
1
vote
2
answers
19
Ace test series 2023
The return value of ace(4) is int ace(int a) { int x=1; static int k=1; if(a==1) return x; for(;k<a;++k) x=x+ace(k)*ace(a-k); return x; } A.15 B.4 C.10 D.Error
Sazia Tabassum
asked
in
Programming in C
Oct 14, 2022
by
Sazia Tabassum
569
views
ace-test-series
programming-in-c
array
Page:
1
2
3
4
5
6
...
10
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
(24)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(682)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent questions tagged array
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation