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
Hot questions in Programming and DS
3
votes
2
answers
3041
C programming
Lakshman Bhaiya
347
views
Lakshman Bhaiya
asked
Dec 31, 2017
Programming in C
programming-in-c
+
–
1
votes
0
answers
3042
gatebook
Niharika 1
328
views
Niharika 1
asked
Jan 20, 2018
1
votes
0
answers
3043
Xam question
*A + 1 - *A + 3
*A + 1 - *A + 3
Rahul Assassinist
167
views
Rahul Assassinist
asked
Jan 25, 2018
Programming in C
programming-in-c
+
–
2
votes
1
answer
3044
C CODING
#include <stdio.h> int main() { float a=5.375; char *p; int i; p = (char*)&a; for(i=0; i<2; i++) printf("%x", (unsigned char)(p[i]^p[3-i])); return 0; } Explain in detail
#include <stdio.h int main(){ float a=5.375; char *p; int i; p = (char*)&a; for(i=0; i<2; i++) printf("%x", (unsigned char)(p[i]^p[3-i])); retur...
sid1221
1.1k
views
sid1221
asked
Nov 2, 2017
2
votes
2
answers
3045
AVL tree
Please provide a step by step solution to this problem. Create an AVL tree for the nodes A,Z,B,C,X,D,E. The number of leaves in the resultant tree is____________.
Please provide a step by step solution to this problem.Create an AVL tree for the nodes A,Z,B,C,X,D,E. The number of leaves in the resultant tree is____________.
Parshu gate
1.5k
views
Parshu gate
asked
Nov 15, 2017
DS
data-structures
avl-tree
+
–
1
votes
1
answer
3046
timothy williams
If n has the value 3 then output of the following statement printf ("%d %d",n++,++n); is a 3 5 b 4 5 c 4 4 d Compiler dependent I think it will be 3,5 because comma operator is a sequence point and hence firstly n++ will evaluate and then ++n. But answer given is compiler dependent Anyone with proper explanation and reasoning??
If n has the value 3 then output of the following statementprintf ("%d %d",n++,++n); isa 3 5b 4 5c 4 4d Compiler dependentI think it will be 3,5 because comma operator is...
sushmita
828
views
sushmita
asked
Dec 3, 2017
Programming in C
programming-in-c
+
–
2
votes
0
answers
3047
C-Output
Consider the following code: The output for the above code is ______.
Consider the following code:The output for the above code is ______.
Aditya Bahuguna
207
views
Aditya Bahuguna
asked
Jan 16, 2018
5
votes
1
answer
3048
Heap - Please explain first statement
ankitgupta.1729
838
views
ankitgupta.1729
asked
Nov 9, 2017
DS
data-structures
binary-heap
test-series
time-complexity
+
–
2
votes
0
answers
3049
programming in c
sumitbansal
311
views
sumitbansal
asked
Jan 15, 2018
1
votes
0
answers
3050
Programming01
Consider below code My ans : mech,g,mech Given ans : mech,g,civil third printf statement is somwhat confusing .. please explain
Consider below code My ans : mech,g,mech Given ans : mech,g,civilthird printf statement is somwhat confusing ..please explain
Anjan
316
views
Anjan
asked
Jan 17, 2018
Programming in C
programming-in-c
pointers
+
–
1
votes
0
answers
3051
programming
dm4006
217
views
dm4006
asked
Jan 25, 2018
Programming in C
programming-in-c
+
–
1
votes
0
answers
3052
Test Series
Choose the correct option, from the following: I) We can find the cycle in the graph using BFS. II) We can find the cycle in the graph using DFS. III)Both Correct IV)Both wrong
Choose the correct option, from the following:I) We can find the cycle in the graph using BFS.II) We can find the cycle in the graph using DFS.III)Both CorrectIV)Both wro...
ankit_thawal
418
views
ankit_thawal
asked
Jan 10, 2018
Programming in C
depth-first-search
cycle
+
–
2
votes
0
answers
3053
doubt
if i have statement like j = (i++ ) + ( ++i) ; which will execute first among (i++) and (++i)
if i have statement like j = (i++ ) + ( ++i) ;which will execute first among (i++) and (++i)
sumit goyal 1
390
views
sumit goyal 1
asked
Jan 14, 2018
2
votes
0
answers
3054
me test doubt programming
print 1-----> print 15 and print 2 ------>print 15 ? given ans is 15 20 why 20?
print 1 - print 15 and print 2 >print 15 ?given ans is 15 20 why 20?
mohitbawankar
542
views
mohitbawankar
asked
Jan 6, 2018
2
votes
1
answer
3055
Programming
which code is true and what is output? 1. if(a>c){ if(b>c){ S1; } S2; } 2. if(a>c) if( b>c){ S1; } S2;
which code is true and what is output?1.if(a>c){if(b>c){S1;}S2;}2.if(a>c)if( b>c){S1;}S2;
Harikesh Kumar
252
views
Harikesh Kumar
asked
Jan 13, 2018
Programming in C
programming-in-c
programming
+
–
3
votes
0
answers
3056
chaining
rajoramanoj
346
views
rajoramanoj
asked
Jan 11, 2018
1
votes
1
answer
3057
Programming
Harikesh Kumar
299
views
Harikesh Kumar
asked
Jan 12, 2018
Programming in C
java
programming
+
–
2
votes
0
answers
3058
Compiler design
i think solution is wrong option b is correct dont need solution just confirm if i m right.
i think solution is wrong option b is correct dont need solution just confirm if i m right.
Ravi kumar singh
171
views
Ravi kumar singh
asked
Jan 19, 2018
1
votes
0
answers
3059
ACE Tesr Series
ankit_thawal
275
views
ankit_thawal
asked
Jan 19, 2018
1
votes
1
answer
3060
Linked list doubt previous year question
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers 1, 2, 3, 4, 5, 6, 7 in the given order. What will be the contents of the list after ... ;value = temp; p = q ->next; q = p? p ->next : 0; } } What is meant by line 1?
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing th...
hem chandra joshi
810
views
hem chandra joshi
asked
Dec 9, 2017
Programming in C
linked-list
+
–
Page:
« prev
1
...
148
149
150
151
152
153
154
155
156
157
158
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register