Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged array
0
votes
2
answers
31
data structure using c, by yaswant kanethkar
Explain the method to calculate the address of an element in an array. A 25*4 matrix array DATA is stored in memory in ‘row-major order’. If base address is 200 and 4 words per memory cell. Calculate the address of DATA [12, 3]…??
Explain the method to calculate the address of an element in an array. A 25*4 matrix arrayDATA is stored in memory in ‘row-major order’. If base address is 200 and 4 ...
akama
1.2k
views
akama
asked
Sep 11, 2022
DS
data-structures
array
matrix
+
–
0
votes
0
answers
32
PhD Admissions Written Test (Basic)
Let A be a sorted array of distinct integers of length n. Design an algorithm to find an index i such that A[i] = i if such an index exists. If there are more than one such indices, you may output any one ... −1. The asymptotic time complexity of the fastest algorithm for this problem, assuming the array is already available, is Θ ______________________________
Let A be a sorted array of distinct integers of length n. Design an algorithm to find an index i such that A[i] = i if such an index exists. If there are more than one su...
rsansiya111
472
views
rsansiya111
asked
Sep 10, 2022
Others
sorting
array
time-complexity
asymptotic-notation
+
–
3
votes
1
answer
33
Data Structures,Algorithms&Applications In c++ page-249 Q-34
In an n x n C-matrix, all terms other than those in row 1, row n, and column 1 are zero. A C-matrix has at most 3n-2 nonzero terms. A C-matrix may be compactly stored in one-dimensional array by first storing row 1, then row n, and then the remaining column 1 elements. Calculate the location of an element A(i, j)?
In an n x n C-matrix, all terms other than those in row 1, row n, and column 1 are zero. A C-matrix has at most 3n-2 nonzero terms. A C-matrix may be compactly stored in ...
Abhi_1o1
652
views
Abhi_1o1
asked
Aug 26, 2022
DS
data-structures
array
matrix
+
–
0
votes
0
answers
34
Best Open Video Playlist for Arrays Topic | Data structures
Please list out the best free available video playlist for Arrays from Data structures as an answer here (only one playlist per answer). We'll then select the best playlist and add to GO classroom video lists. You can add ... but standard ones are more likely to be selected as best. For the full list of selected videos please see here
Please list out the best free available video playlist for Arrays from Data structures as an answer here (only one playlist per answer). We'll then select the best playli...
makhdoom ghaya
235
views
makhdoom ghaya
asked
Aug 16, 2022
Study Resources
go-classroom
missing-videos
free-videos
video-links
array
+
–
5
votes
1
answer
35
GO Classes Scholarship 2023 | Test | Question: 19
Consider the following declaration of variable a in C program (row-major order). int a[3][4][5]; Which of the following(s) is/are TRUE about pointer arithmetic operations? Value of $a[2]-a[1]$ is $4$ Value of $a[1][2]-a[0][3]$ is $15$ Value of $a[0][10]-a[1][0]$ is $30$ Value of $a[2]-a[1]$ is $5$
Consider the following declaration of variable a in C program (row-major order).int a[3][4][5];Which of the following(s) is/are TRUE about pointer arithmetic operations?V...
GO Classes
755
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
goclasses
programming
programming-in-c
array
multiple-selects
2-marks
+
–
3
votes
1
answer
36
GO Classes Scholarship 2023 | Test | Question: 21
Let arrays OneD and TwoD are declared as follows as: int OneD[10]; int TwoD[4][5]; Which of the following is/are valid syntax to pass OneD and TwoD to some function fun()? A syntax is valid if it gets compiled without any warning or error. void fun(int OneD[10]); void fun(int OneD[5]); void fun(int TwoD[][5]); void fun(int **TwoD);
Let arrays OneD and TwoD are declared as follows as:int OneD[10]; int TwoD[4][5];Which of the following is/are valid syntax to pass OneD and TwoD to some function fun()?A...
GO Classes
707
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
goclasses
programming
programming-in-c
array
multiple-selects
1-mark
+
–
1
votes
2
answers
37
GO Classes Scholarship 2023 | Test | Question: 29
In which of the following case(s) character array must end with null char? char c[] = "GATE"; char c[] = {'2', '0', '2', '3'}; char c[4] = "GATE"; char c[16] = "2023";
In which of the following case(s) character array must end with null char?char c[] = "GATE";char c[] = {'2', '0', '2', '3'};char c[4] = "GATE";char c[16] = "2023";
GO Classes
1.2k
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
goclasses
programming
programming-in-c
array
multiple-selects
1-mark
+
–
4
votes
3
answers
38
GO Classes Scholarship 2023 | Test | Question: 30
Consider the following C code fragement - #include<stdio.h> int main() { char t[] = "abcdefghij"; int *p = t; p+=2; char *c = (char *)p; printf("%c", *c); } Which of the following is/are correct? The ... $\textsf{ i "}$ (without quotes).
Consider the following C code fragement -#include<stdio.h int main() { char t[] = "abcdefghij"; int *p = t; p+=2; char *c = (char *)p; printf("%c", *c); }Which of the fol...
GO Classes
1.1k
views
GO Classes
asked
Aug 6, 2022
Programming in C
goclasses-scholarship-test1
goclasses
programming
programming-in-c
array
pointers
multiple-selects
1-mark
+
–
2
votes
3
answers
39
Array
An array VAL[1..15][1..10] is stored in the memory with each element requiring 4 bytes of storage. If the base address of array VAL is 1500, determine the location of VAL[12][9] when the array VAL is stored in Row wise. ?
An array VAL[1..15][1..10] is stored in the memory with each element requiring 4 bytes of storage. If the base address of array VAL is 1500, determine the location of VAL...
Nitesh_Yadav
2.0k
views
Nitesh_Yadav
asked
Jul 2, 2022
Programming in C
array
programming-in-c
data-structures
+
–
5
votes
1
answer
40
GO Classes Test Series 2023 | Algorithms | Test 1 | Question: 2
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$
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 ...
GO Classes
513
views
GO Classes
asked
Jun 13, 2022
Algorithms
goclasses2024-algo-1-weekly-quiz
goclasses
algorithms
sorting
array
1-mark
+
–
0
votes
0
answers
41
how to Implement arrays using linked lists (and vice versa)?
how to Implement arrays using linked lists (and vice versa)? Like if we implement a linked list using an array .then we can maintain two arrays. In one array we will maintain the data and in another array, we will store ... it accordingly, whether this is correct? Also how to implement an array using a linked list..is this even possible?
how to Implement arrays using linked lists (and vice versa)?Like if we implement a linked list using an array….then we can maintain two arrays.In one array we will main...
samarpita
488
views
samarpita
asked
May 21, 2022
DS
algorithms
array
linked-list
data-structures
+
–
3
votes
1
answer
42
GO Classes Test Series 2024 | Programming | Test 3 | Question: 22
What does the following program print? #include<stdio.h> #include<string.h> struct MdbRec { char name[16]; char msg[24]; }; int main() { struct MdbRec m[1]; strcpy(m[0].name, "dude"); strcpy(m[0].msg, " ... printf("%d", m->msg - (char *)m ); } Prints nothing Prints $17$ Prints $24$ Prints $16$
What does the following program print?#include<stdio.h #include<string.h struct MdbRec { char name[16]; char msg[24]; }; int main() { struct MdbRec m ; strcpy(m[0].name, ...
GO Classes
570
views
GO Classes
asked
Apr 30, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
goclasses
programming
programming-in-c
structure
array
multiple-selects
2-marks
+
–
3
votes
1
answer
43
GO Classes Test Series 2024 | Programming | Test 3 | Question: 26
What will be the output of the following C program? #include<stdio.h> int main() { static int p[] = {1, 2, 3, 0, 5, 6}; static int *q[] = {p+2, p+1, p, p+3, p+4, p+5}; static int **r[] = {q+4, q+5, q+1, q, q+2, q+3}; int ***pt; pt = r + 2; printf("%d", ***(pt+3)-**(q+1)); }
What will be the output of the following C program?#include<stdio.h int main() { static int p[] = {1, 2, 3, 0, 5, 6}; static int *q[] = {p+2, p+1, p, p+3, p+4, p+5}; stat...
GO Classes
453
views
GO Classes
asked
Apr 30, 2022
Programming in C
goclasses2024-programming-3-weekly-quiz
numerical-answers
goclasses
programming
programming-in-c
array
pointers
array-of-pointers
2-marks
+
–
Page:
« prev
1
2
3
4
5
6
7
...
10
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register