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
0
votes
0
answers
2431
GO Classroom(Linked List)
Is my analysis correct? I analyze code that if it will take 1->2->3 and 4->1->2 as input then output will be reverse of 5->3->2 i.e. 2->3->5 Why code is showing runtime error? #include<stdio.h> #include<stdlib.h> ... , 0); reverse( rsum, &sum); printf("The sum is : "); printList(sum); printf("\n"); return 0; }
Is my analysis correct?I analyze code that if it will take 1->2->3 and 4->1->2 as inputthen output will be reverse of 5->3->2 i.e. 2->3->5Why code is showing runtime erro...
srestha
493
views
srestha
asked
Aug 11, 2018
Programming in C
go-classroom
programming
+
–
0
votes
0
answers
2432
Made Easy test series DS
Consider the following function with a Binary Tree with atleast one node: int path (struct node *x, int len) { if(x==null) return B; else return A; } Assume the above function is used to check the given binary tree has any path with specified length from root to the leaf node . Let ... , B is (len=1) d) A is path(x -->left, len) || path(x--> right, len), B is (len=1)
Consider the following function with a Binary Tree with atleast one node:int path (struct node *x, int len){if(x==null) return B;else return A;} Assume the above function...
Sambhrant Maurya
615
views
Sambhrant Maurya
asked
Jul 27, 2018
0
votes
1
answer
2433
Pointers in C
What is a variable pointer? please note the question is not asking about pointer variables, but the specific term.
What is a variable pointer? please note the question is not asking about pointer variables, but the specific term.
Prakhar Yadav 1
529
views
Prakhar Yadav 1
asked
Aug 6, 2018
Programming in C
programming-in-c
pointers
+
–
0
votes
1
answer
2434
array
anyone please explain me how to find loc in lower triangular matrix , i am getting little bit confuse suppose matrix is 1 2 3 4 1 a11 a12 a13 a14 2 a21 a22 a23 a24 3 a31 a32 a33 a34 4 a41 a42 a43 a44 now i have to find location of a[4] b[3]:- given BA=1000 C=1 =1000+ [(4-1) * ((3)(4))/2 +(3-1)]*1 by this way i we get answer but something wrong please exolplain
anyone please explain me how to find loc in lower triangular matrix , i am getting little bit confuse suppose matrix is ...
air1ankit
692
views
air1ankit
asked
Jul 12, 2018
Programming in C
algorithms
data
data-structures
+
–
0
votes
0
answers
2435
Data structures
Is there any graph whose number of BFS and DFS traversals are different?If so which graph.
Is there any graph whose number of BFS and DFS traversals are different?If so which graph.
AIkiran01
645
views
AIkiran01
asked
Aug 5, 2018
Programming in C
breadth-first-search
data-structures
+
–
0
votes
0
answers
2436
#Go Classroom DataTypes
https://gatecse.in/data_types_operators_in_c/ Q7. #include <stdio.h> int main() { char *p = "Hello World"; char q[] = "Hello World"; printf("%zd %zd", sizeof p, sizeof *p); printf("\n"); printf("%zd %zd", ... the char array Is it correct? What will sizeof *p and sizeof *q give? I am getting the output as 4 1 12 1
https://gatecse.in/data_types_operators_in_c/ Q7. #include <stdio.h>int main(){ char *p = "Hello World"; char q[] = "Hello World"; printf("%zd %zd", sizeof p, s...
Bhagyashree Mukherje
453
views
Bhagyashree Mukherje
asked
Aug 10, 2018
Programming in C
go-classroom
programming
+
–
0
votes
1
answer
2437
CAN"T UNDERSTAND!HOW TO PROCESS WHEN ADRESS RECEIVED BY POINT OF POINTER VARIABLE AS FUNCTION ARGUMENT!!!
CHïntän ÞäTël
420
views
CHïntän ÞäTël
asked
Jul 30, 2018
0
votes
0
answers
2438
Link List
Option B ? Following is a function Mystery() which takes a list and sorts it. Line 1 and Line 2 are left blank intentionally.
Option B ? Following is a function Mystery() which takes a list and sorts it. Line 1and Line 2 are left blank intentionally.
HeadShot
452
views
HeadShot
asked
Aug 12, 2018
0
votes
1
answer
2439
Recurrence Relation
Solve the following recurrence relation :- N(h)=N(h−1)+N(h−2)+1
Solve the following recurrence relation :-N(h)=N(h−1)+N(h−2)+1
bts
547
views
bts
asked
Jul 27, 2018
Programming in C
recurrence-relation
time-complexity
algorithms
+
–
0
votes
0
answers
2440
Programming With C
Please provide solution
Please provide solution
rohan.1737
292
views
rohan.1737
asked
Aug 17, 2018
0
votes
2
answers
2441
Online test series
#include<stdio.h> int f(int x,int *py,int **ppz){ int y,z; **ppz+=1; z=**ppz; *py+=2; y=*py; x+=3; return(x+y+z); } void main(){ int c,*b,**a; c=4; b=&c; a=&b; printf("%d",f(&c,b,a)); return 0; } Here why doesn't the value of x increment even though the pointers are changed by value? Why is the answer 19 and not 22?
#include<stdio.h>int f(int x,int *py,int ppz){ int y,z; ppz+=1; z= ppz; *py+=2; y=*py; x+=3; return(x+y+z);}void main(){ int c,*b, a; c=4; b=&c; a=&b; print...
Satwik Mishra 1
1.8k
views
Satwik Mishra 1
asked
Sep 20, 2017
Programming in C
programming-in-c
+
–
0
votes
0
answers
2442
Link List
HeadShot
467
views
HeadShot
asked
Aug 12, 2018
0
votes
1
answer
2443
Testbook testseries
Avik Chowdhury
329
views
Avik Chowdhury
asked
Aug 10, 2018
Programming in C
data-structures
+
–
2
votes
1
answer
2444
Switch
case : 'AB' is it valid to write multiple characters in single quotes? And if valid does ASCII value of a& b gets added and stored as integral constant? Thanks
case : 'AB' is it valid to write multiple characters in single quotes?And if valid does ASCII value of a& b gets added and stored as integral constant?Thanks
Mayankprakash
574
views
Mayankprakash
asked
Jul 15, 2018
1
votes
1
answer
2445
MadeEasy Test Series 2018: Programming & DS - Programming In C
Please help to explain- why option A is incorrect?
Please help to explain- why option A is incorrect?
Mamta Satywali
346
views
Mamta Satywali
asked
Jan 15, 2018
Programming in C
programming
programming-in-c
made-easy-test-series
madeeasy-testseries-2018
+
–
1
votes
1
answer
2446
Ace Test series
What will be the output?
What will be the output?
Sambhrant Maurya
620
views
Sambhrant Maurya
asked
Jul 24, 2018
0
votes
1
answer
2447
Atomic operation(s) permissible on Semaphores is/are - (a) stop (b) wait (c) hold (d) signal
MaaHii sHarma
274
views
MaaHii sHarma
asked
Aug 5, 2018
1
votes
1
answer
2448
Modify question gate 2003
A data structure is required for storing a set of integers such that each of the following operations can be done in O(logn) time, where n is the number of elements in the set. Deletion of the smallest element Insertion of an element. Which of the following data ... balance Bst also it should be O(logn) as for balancing it will take O(logn) time . Correct me if i am wrong
A data structure is required for storing a set of integers such that each of the following operations can be done in O(logn) time, where n is the number of elements in th...
Prince Sindhiya
360
views
Prince Sindhiya
asked
Jul 28, 2018
DS
data-structures
+
–
2
votes
1
answer
2449
Assignment Gate DSA 2014
#include <stdio.h> void f(char**); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char **p) { char *t; t = (p += sizeof(int))[-1]; printf("%s\n", t); } (a) ab (b) cd (c) ef (d) gh
#include <stdio.h void f(char ); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char p) { char *t; t...
Prayag
457
views
Prayag
asked
Jul 16, 2018
Programming in C
programming-in-c
non-gate
+
–
0
votes
3
answers
2450
C programming
How many times will the loop execute? What is the general expression in terms of 'n'? for( i=1; i<=n; i=i*3) { for( j=i; j<=n; j++) { printf ( "ravi"); } }
How many times will the loop execute?What is the general expression in terms of 'n'?for( i=1; i<=n; i=i*3) { for( j=i; j<=n; j++) { printf ...
rishabhgupta12
539
views
rishabhgupta12
asked
Jul 19, 2018
Programming in C
programming-in-c
+
–
Page:
« prev
1
...
117
118
119
120
121
122
123
124
125
126
127
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register