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
0
votes
1
answer
241
Algo
Consider an array size of 10 and insertion of 10 element in it.If first five element are inserted at loc =0 and rest five element are at loc=2 then the total number of shifting of elements is: 35 20 45 0
ManojK
asked
in
DS
May 20, 2016
by
ManojK
400
views
data-structures
array
0
votes
2
answers
242
Prog \ Predict the output
#include <stdio.h> int main() { char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d\n", p); return 0; } (a) 5 (b) 6 (c) 9 (d) none of the above
Desert_Warrior
asked
in
Programming in C
May 16, 2016
by
Desert_Warrior
3.0k
views
programming-in-c
output
array
0
votes
1
answer
243
Prog \ What is the output of the following program?
#include <stdio.h> void foo(int[][3]); int main(void) { int a[3][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; foo(a); printf("%d\n", a[2][1]); return 0; } void foo(int b[][3]) { ++b; b[1][1] = 9; } (a) 8 (b) 9 (c) 7 (d) none of the above
Desert_Warrior
asked
in
Programming in C
May 16, 2016
by
Desert_Warrior
8.3k
views
programming-in-c
array
0
votes
1
answer
244
Prog \ What is the output of the following program?
#include<stdio.h> #include<stdlib.h> int main() { char s[] = "Opendays2012"; int i = 0; while(*(s++)) i++; printf("%d",i); return 0; } (a) Segmentation Fault (b) Compile Error (c) 12 (d) 0
Desert_Warrior
asked
in
Programming in C
May 16, 2016
by
Desert_Warrior
607
views
programming-in-c
pointers
output
interview
array
0
votes
0
answers
245
Programming \ What is the output of the following program?
#include <stdio.h> void foo(int[][3]); int main(void) { int a[3][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; foo(a); printf("%d\n", a[2][1]); return 0; } void foo(int b[][3]) { ++b; b[1][1] = 9; } (a) 8 (b) 9 (c) 7 (d) none of the above
Desert_Warrior
asked
in
Programming in C
May 16, 2016
by
Desert_Warrior
604
views
programming-in-c
output
interview
array
0
votes
2
answers
246
Programming \ what is the output?
#include<stdio.h> int main() { int a[10][20][30]={0}; printf("%ld",&a+1 - &a); return 0; }
Desert_Warrior
asked
in
Programming in C
May 16, 2016
by
Desert_Warrior
1.6k
views
programming-in-c
output
interview
array
1
vote
1
answer
247
UGC NET CSE | June 2013 | Part 3 | Question: 48
When an array is passed as a parameter to a function which of the following statements is correct? The function can values in the original array The function cannot values in the original array Results in compilation error Results in run-time error
im.raj
asked
in
Programming in C
May 6, 2016
by
im.raj
2.0k
views
ugcnetcse-june2013-paper3
programming-in-c
array
9
votes
3
answers
248
ISRO-2013-9
In an array of $2N$ elements that is both 2-ordered and 3-ordered, what is the maximum number of positions that an element can be from its position if the array were 1-ordered? $1$ $2$ $N/2$ $2N - 1$
makhdoom ghaya
asked
in
DS
Apr 25, 2016
by
makhdoom ghaya
9.2k
views
isro2013
array
11
votes
2
answers
249
ISRO-2013-1
Let $A(1:8, -5:5, -10:5)$ be a three dimensional array. How many elements are there in the array $A$? $1200$ $1408$ $33$ $1050$
makhdoom ghaya
asked
in
DS
Apr 25, 2016
by
makhdoom ghaya
7.8k
views
isro2013
array
easy
35
votes
4
answers
250
GATE CSE 2013 | Question: 51
The procedure given below is required to find and replace certain characters inside an input character string supplied in array $A$. The characters to be replaced are supplied in array $oldc$, while their respective replacement characters are supplied in array $newc$. ... will be successful in exposing the flaw in this procedure? None $2$ only $3$ and $4$ only $4$ only
go_editor
asked
in
DS
Apr 21, 2016
by
go_editor
5.3k
views
gatecse-2013
data-structures
array
normal
1
vote
1
answer
251
Output and please explain
#include<stdio.h> int main() { char *s = "Geeks Quiz"; int n = 7; printf("%.*s", n, s); return 0; }
Sandip Shaw
asked
in
Programming in C
Feb 25, 2016
by
Sandip Shaw
2.5k
views
programming-in-c
pointers
array
0
votes
1
answer
252
What will be the O/P of the following C code? Virtual gate
Purple
asked
in
Programming in C
Jan 31, 2016
by
Purple
1.2k
views
algorithms
array
programming-in-c
0
votes
1
answer
253
merge algo
Number of comparisions in worst case required to merge two sorted arrays of size 40 and 60 are-------
Kamalkant Patel
asked
in
Algorithms
Jan 30, 2016
by
Kamalkant Patel
287
views
algorithms
merging
array
0
votes
0
answers
254
PDS: Two Dimensional Arrays
Consider the following program: main (){ int i, j; int A[p][q] = { {1, 3, 5}, {2, 4, 6} }; for (i = 0; i < m; i++) for (j = 0; j < n; j++) printf("%d", * (A[j] + i)); } Assume $m$ is number of rows and $n$ is number of columns. Find the OUTPUT printed by the above program. $123456$ $135246$ $456456$ $456789$
Prasanna
asked
in
Programming in C
Jan 10, 2016
by
Prasanna
703
views
programming-in-c
array
0
votes
0
answers
255
Array implementation of matrix
If tthere are two lower triangular matrix A and B.A and transpose B are stored in C. by storing only non zero elements.what should be the dimension of C. And A[i][j]= C[i][j] B[i][j]= C[i][j+1] is also written in notes i dont know its a part of ques. or solution I m not getting it what is actually asked here?
khushtak
asked
in
Programming in C
Jan 10, 2016
by
khushtak
338
views
data-structures
array
2
votes
1
answer
256
Could any one explain me How to derive formula in RMO CMO ?
There has to be a general method in deriving equations based on RMO and CMO . Could any one explain me how to derive formula of RMO and CMO of important matrices like Upper Triangular Lower Triangular S matrice z matrix Diagonal MAtrix etc
pC
asked
in
DS
Dec 23, 2015
by
pC
1.0k
views
array
16
votes
3
answers
257
Find address of element in 3d array
A is an array $[2.....6, 2.....8, 2.......10]$ of elements. The starting location is $500$. The location of an element $A(5, 5, 5)$ using column major order is __________.
shikharV
asked
in
DS
Dec 4, 2015
by
shikharV
15.6k
views
data-structures
array
algorithms
3
votes
2
answers
258
What is ouput will be printed in array , if following code performed
Main () { int a [3] [4] = $\begin{pmatrix} 1&2&3&4 \\ 5&6&7&8 \\ 9&10&11&12 \\ \end{pmatrix}$ printf ("\n% u% u% u", a[0]+1, * (a[0] + 1), *(*(a + 0)+1)); } What is the output of the above program? Assume array begin at address 10.
sabir
asked
in
Programming in C
Nov 24, 2015
by
sabir
928
views
array
pointers
2
votes
1
answer
259
Finding the address of element in 2D array
Please solve the above problem. Given answer: D
shikharV
asked
in
DS
Nov 16, 2015
by
shikharV
2.3k
views
data-structures
array
26
votes
5
answers
260
TIFR CSE 2011 | Part B | Question: 30
Consider an array $A[1...n]$. It consists of a permutation of numbers $1....n$. Now compute another array $B[1...n]$ as follows: $B[A[i]]:= i$ for all $i$. Which of the following is true? $B$ will be a sorted array. $B$ ... of array $A$. Doing the same transformation twice will not give the same array. $B$ is not a permutation of array $A$. None of the above.
makhdoom ghaya
asked
in
DS
Oct 22, 2015
by
makhdoom ghaya
4.8k
views
tifr2011
data-structures
array
0
votes
1
answer
261
What is K -way merge sort.... !!!!!
What is K -way merge sort.... !!!!! i m very confused....if we say 2-way merge sort..does it mean dividing array into 2 parts or dividing array in size of 2!!!!
pyuri
asked
in
Algorithms
Oct 6, 2015
by
pyuri
1.3k
views
merge-sort
array
8
votes
1
answer
262
ISRO2008-1
Which of the following is an illegal array definition? Type COLONGE : (LIME, PINE, MUSK, MENTHOL); var a : array [COLONGE] of REAL; var a : array [REAL] of REAL; var a : array [‘A’…’Z’] of REAL; var a : array [BOOLEAN] of REAL;
अनुराग पाण्डेय
asked
in
Programming in C
Oct 4, 2015
by
अनुराग पाण्डेय
9.2k
views
isro2008
array
3
votes
2
answers
263
Cache Memory and Arrays
Given an array A[100] of which each element size is 4 words. Processor uses a Cache Memory which is divided into 4 lines each of size 8 words to execute the following code for(i=0; i<100; ++i) { A[i] = A[i] + 10; } What is ... I needed to extract from this question is : for calculation of hit ratio do we count a write operation as Hit or only Read operations are counted
amarVashishth
asked
in
CO and Architecture
Jul 8, 2015
by
amarVashishth
2.2k
views
cache-memory
co-and-architecture
array
0
votes
3
answers
264
what is the starting address of A[49] ?
A one dimensional array A has indices 1....75.Each element is a string and takes up three memory words. The array is stored starting at location 1120 decimal. The starting address of A[49] is A. 1167 B. 1164 C. 1264 D. ... it takes three memory words.is this correct answer?Does each memory word represents a single character? or am i doing something wrong?
GATE_2016
asked
in
Programming in C
Apr 22, 2015
by
GATE_2016
4.0k
views
array
programming
43
votes
3
answers
265
GATE CSE 2015 Set 3 | Question: 30
Consider the following two C code segments. $Y$ and $X$ are one and two dimensional arrays of size $n$ and $ n \times n$ respectively, where $2 \leq n \leq 10$. Assume that in both code segments, elements of $Y$ are initialized to $0$ ... $2$ are contiguous in main memory Only S2 is correct Only S3 is correct Only S1 and S2 are correct Only S1 and S3 are correct
go_editor
asked
in
Programming in C
Feb 15, 2015
by
go_editor
8.8k
views
gatecse-2015-set3
programming-in-c
normal
array
46
votes
8
answers
266
GATE CSE 2015 Set 3 | Question: 7
Consider the following C program segment. # include <stdio.h> int main() { char s1[7] = "1234", *p; p = s1 + 2; *p = '0'; printf("%s", s1); } What will be printed by the program? $12$ $120400$ $1204$ $1034$
go_editor
asked
in
Programming in C
Feb 14, 2015
by
go_editor
16.0k
views
gatecse-2015-set3
programming
programming-in-c
normal
array
110
votes
6
answers
267
GATE CSE 2015 Set 1 | Question: 35
What is the output of the following C code? Assume that the address of $x$ is $2000$ (in decimal) and an integer requires four bytes of memory. int main () { unsigned int x [4] [3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}}; printf ("%u, %u, %u", x + 3, *(x + 3), *(x + 2) + 3); } $2036, 2036, 2036$ $2012, 4, 2204$ $2036, 10, 10$ $2012, 4, 6$
makhdoom ghaya
asked
in
Programming in C
Feb 13, 2015
by
makhdoom ghaya
28.0k
views
gatecse-2015-set1
programming
programming-in-c
array
normal
71
votes
9
answers
268
GATE CSE 2015 Set 2 | Question: 31
A Young tableau is a $2D$ array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with $\infty$, and hence there cannot be any entry to the right of, or below a $\infty$. The following Young tableau ... The minimum number of entries (other than $1$) to be shifted, to remove $1$ from the given Young tableau is _____.
go_editor
asked
in
DS
Feb 12, 2015
by
go_editor
13.2k
views
gatecse-2015-set2
databases
array
normal
numerical-answers
30
votes
3
answers
269
GATE IT 2004 | Question: 58
Consider the following C program which is supposed to compute the transpose of a given $4 \times 4$ matrix $M$. Note that, there is an $X$ in the program which indicates some missing statements. Choose the correct option to replace $X$ in the program. #include<stdio.h> #define ROW 4 #define COL 4 ... j < 4; ++j){ M[i][j] = t; t = M[j][i]; M[j][i] = M[i][j]; }
Ishrat Jahan
asked
in
Programming in C
Nov 2, 2014
by
Ishrat Jahan
12.3k
views
gateit-2004
programming
easy
programming-in-c
array
42
votes
2
answers
270
GATE IT 2008 | Question: 52
C program is given below: # include <stdio.h> int main () { int i, j; char a [2] [3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}}; char b [3] [2]; char *p = *b; for (i = 0; i < 2; i++) { for (j = 0; j < ... $\text{b e}$ $\text{c f}$ $\text{a c}$ $\text{e b}$ $\text{d f}$ $\text{a e}$ $\text{d c}$ $\text{b f}$
Ishrat Jahan
asked
in
Programming in C
Oct 28, 2014
by
Ishrat Jahan
10.5k
views
gateit-2008
programming
programming-in-c
normal
array
Page:
« prev
1
...
4
5
6
7
8
9
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
(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 array
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:...