Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
0
votes
4
answers
5021
How to manipulate the given linked list in the following manner in O(n) time ?
If we are given a linked list then we have to manipulate such that even indexed node are arranged together and odd indexed nodes are arranged together after even indexed nodes for instance the given linked list is 1-->2-->3-->4-->5-->6 , so the op should be 2-->4-->6-->1-->3-->5
If we are given a linked list then we have to manipulate such that even indexed node are arranged together and oddindexed nodes are arranged together after even indexed n...
radha gogia
943
views
radha gogia
asked
Apr 7, 2016
DS
linked-list
placement-questions
descriptive
+
–
0
votes
1
answer
5022
How to find the number of height balanced nodes in a tree in O(n) time ?
A node is height balanced if difference between height of left subtree and right subtree is either -1 , 0 or 1 , so how to count such nodes , without maintaining any extra field in the node except for left and right child pointers .
A node is height balanced if difference between height of left subtree and right subtree is either -1 , 0 or 1 , so how to count such nodes , without maintaining any extr...
radha gogia
567
views
radha gogia
asked
Apr 7, 2016
0
votes
1
answer
5023
garbage collection
Why C language does not provide heap or garbage collection ?? Is there any higher level mechanism??
Why C language does not provide heap or garbage collection ?? Is there any higher level mechanism??
ManojK
561
views
ManojK
asked
Apr 5, 2016
Programming in C
programming-in-c
+
–
2
votes
3
answers
5024
Linked list
Why linked list not suitable for binary search?
Why linked list not suitable for binary search?
Anjali Raghu
811
views
Anjali Raghu
asked
Apr 4, 2016
DS
binary-search
+
–
1
votes
1
answer
5025
Programing
Explanation pls ? void main(){ float a; a=6.7; if(a==6.7) printf("A"); else printf("B"); }
Explanation pls ? void main(){ float a; a=6.7; if(a==6.7) printf("A"); else printf("B"); }
Registered user 7
672
views
Registered user 7
asked
Apr 4, 2016
0
votes
3
answers
5026
programing
int main(){ int a; a = 1; while(a-- >= 1) while(a-- >= 0); printf("%d", a); }
int main(){ int a; a = 1; while(a >= 1) while(a >= 0); printf("%d", a); }
Registered user 7
574
views
Registered user 7
asked
Apr 4, 2016
Programming in C
programming-in-c
loop
+
–
0
votes
1
answer
5027
Is Infix, Pre-fix and Postfix evaluation there (in syllabus) in Stacks topic under Data Structures?
Is Infix, Pre-fix and Postfix evaluation there (in syllabus) in Stacks topic under Data Structures?
Is Infix, Pre-fix and Postfix evaluation there (in syllabus) in Stacks topic under Data Structures?
MohammedSunasra
567
views
MohammedSunasra
asked
Mar 31, 2016
0
votes
3
answers
5028
what is stackoverflow?
ranjithkumar
982
views
ranjithkumar
asked
Mar 30, 2016
0
votes
1
answer
5029
C Programming doubt
What is the difference between struct node* head= NULL and struct node* head= (struct node*)NULL ?
What is the difference between struct node* head= NULL and struct node* head= (struct node*)NULL ?
UK
697
views
UK
asked
Mar 25, 2016
Programming in C
programming-in-c
structure
pointers
+
–
0
votes
3
answers
5030
What all subtopics in Programming in C is required for Gate 2017?
In the syllabus given by IISC, it just says Programming in C. But it doesn't mention about the subtopics. As there are many topics are there in c like : C - Overview C - Environment Setup C - Program Structure C - ... C - Memory Management C - Command Line Arguments But I don't know which of the above is enough for gate.
In the syllabus given by IISC, it just says Programming in C. But it doesn't mention about the subtopics.As there are many topics are there in c like :C - OverviewC - Env...
Red Wolf
5.3k
views
Red Wolf
asked
Mar 24, 2016
Programming in C
syllabus
+
–
1
votes
3
answers
5031
C pointer doubt
What is the difference when I write in program mynode * head; add_node(&head,10); add_node( struct node ** head, into value); To this mynode *head; add_node (head,10); add_node( struct node* head, into value) Which is the correct way of writing?
What is the difference when I write in program mynode * head; add_node(&head,10); add_node( struct node head, into value);To this mynode *head; add_node (head,10); add_...
UK
710
views
UK
asked
Mar 15, 2016
Programming in C
programming-in-c
pointers
+
–
0
votes
2
answers
5032
about c language
what is function in c pragramming to take mod of number in c ie. |-15|=15
what is function in c pragramming to take mod of number in c ie. |-15|=15
Nilu
538
views
Nilu
asked
Mar 14, 2016
0
votes
2
answers
5033
c array
Under which of the following conditions, the size of an one-dimensional array need to be specified ? a) when initialization is a part of definition b) when it is a declaration c) when it is a formal parameter or actual parameter d) none of the above
Under which of the following conditions, the size of an one-dimensional array need to be specified ?a) when initialization is a part of definitionb) when it is a declarat...
Nishu
5.3k
views
Nishu
asked
Mar 14, 2016
1
votes
1
answer
5034
Output of c program
void fun(int *p) { int q = 10; p = &q; } int main() { int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0; }
void fun(int *p) { int q = 10; p = &q; } int main() { int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0; }
bad_engineer
8.7k
views
bad_engineer
asked
Mar 13, 2016
Programming in C
programming-in-c
barc2016
pointers
+
–
0
votes
3
answers
5035
Which of these programs are possible in C++/Java without the use of File I/O ?
P1: A program can print its source code once. P2: A program can print its source code twice. P3: A program takes an input n and prints its source code n number of times. Which of these programs are possible in C++ ... : A. P1 possible B. P1 and P2 possible. C. None Possible. D. All are possible Option can be different
P1: A program can print its source code once.P2: A program can print its source code twice.P3: A program takes an input n and prints its source code n number of times.Whi...
bad_engineer
615
views
bad_engineer
asked
Mar 13, 2016
Programming in C
barc2016
programming
others
geeks
+
–
0
votes
1
answer
5036
sparse matrix
How many real links are required to store a sparse matrix of 10 rows , 10 columns ,and 15 non zeros entries.(pick up the closest answer)
How many real links are required to store a sparse matrix of 10 rows , 10 columns ,and 15 non zeros entries.(pick up the closest answer)
neha singh
2.7k
views
neha singh
asked
Mar 11, 2016
DS
data-structures
sparse-matrix
matrix
+
–
0
votes
0
answers
5037
Hash table
Consider a hash table with 'm' slots that uses chaining for collision resolution. the table is initially empty. What is probability that after 4 keys are inserted then atleast a chain of size 3 is created? (assume simple uniform hashing is used) a. m-1 b. m-4 c. m-3(m-1) d. 3m-1
Consider a hash table with 'm' slots that uses chaining for collision resolution. the table is initially empty. What is probability that after 4 keys are inserted then at...
Desert_Warrior
738
views
Desert_Warrior
asked
Mar 11, 2016
DS
hashing
data-structures
+
–
0
votes
1
answer
5038
array
asu
1.2k
views
asu
asked
Mar 9, 2016
0
votes
2
answers
5039
If we store n keys in a hash table of size m=n^2 , then what is the probability of any collision ?
The hash function is randomly chosen from a universal class of hash functions , then what is the probability of any collision ?
The hash function is randomly chosen from a universal class of hash functions , then what is the probability of any collision ?
radha gogia
2.7k
views
radha gogia
asked
Mar 7, 2016
0
votes
2
answers
5040
Select a data structure that you have seen previously, and discuss its strengths and limitations.
Select a data structure that you have seen previously, and discuss its strengths and limitations.
Select a data structure that you have seen previously, and discuss its strengths and limitations.
Anurag_s
2.9k
views
Anurag_s
asked
Mar 4, 2016
DS
clrs
data-structures
+
–
Page:
« prev
1
...
247
248
249
250
251
252
253
254
255
256
257
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register