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
1
answer
3481
#cicular queue
shefali1
477
views
shefali1
asked
Nov 11, 2017
3
votes
1
answer
3482
C PROGRAMMING
OUTPUT OF THE FOLLOWING PROGRAMME #include<stdio.h> int main() { int n1=10; int n2=15; int n3; n3=~n1; printf("%d",n3); return 0; } Basically here i want to understand how do we store negation value and what are the changes done,for a signed and unsigned integers here considering integer is of 4 bytes here.
OUTPUT OF THE FOLLOWING PROGRAMME#include<stdio.h int main() { int n1=10; int n2=15; int n3; n3=~n1; printf("%d",n3); return 0; }Basically here i want to understand how d...
junaid ahmad
438
views
junaid ahmad
asked
Oct 31, 2017
Programming in C
programming-in-c
non-gate
+
–
0
votes
3
answers
3483
C programming
#include<stdio.h> int main() { int a=10,b=20,c=30; c==a==b; Printf("%d%d%d",a,b,c); return0;}
#include<stdio.h>int main(){ int a=10,b=20,c=30;c==a==b;Printf("%d%d%d",a,b,c);return0;}
S .shubham
974
views
S .shubham
asked
Oct 4, 2017
Programming in C
programming-in-c
+
–
0
votes
0
answers
3484
C programing
Harikesh Kumar
191
views
Harikesh Kumar
asked
Dec 4, 2017
Programming in C
programming-in-c
+
–
0
votes
0
answers
3485
Data structure
Answer given is 132 but on geeks for geeks solution is http://www.geeksforgeeks.org/number-of-ways-to-traverse-an-n-ary-tree/. Which is correct
Answer given is 132 but on geeks for geeks solution is http://www.geeksforgeeks.org/number-of-ways-to-traverse-an-n-ary-tree/. Which is correct
Nitesh Choudhary
197
views
Nitesh Choudhary
asked
Dec 6, 2017
0
votes
0
answers
3486
data structure
what is complexity 1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stack plz someone tell?
what is complexity1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stackplz someone tell?
aaru14
231
views
aaru14
asked
Dec 4, 2017
Programming in C
data-structures
+
–
1
votes
1
answer
3487
Array
A tridiagonal matrix [-2..2,5..9] is stored in row major order with base address 301.what is the address of data [0][8] if nonzero elements are stored??
A tridiagonal matrix [-2..2,5..9] is stored in row major order with base address 301.what is the address of data [0][8] if nonzero elements are stored??
Smrutiprajna
2.3k
views
Smrutiprajna
asked
Aug 7, 2017
0
votes
0
answers
3488
madeeasy work book
Assume that a lower traingular matrix A[0.....n-1,0...n-1] is stored in a linear array B [0....1/2 n (n+1)-1] in row by row order for n=100 if A[0,0] is stored inB[0] where is A[90,80] stored in B array??
Assume that a lower traingular matrix A[0.....n-1,0...n-1] is stored in a linear array B [0....1/2 n (n+1)-1] in row by row order for n=100 if A[0,0] is stored inB[0] whe...
aaru14
158
views
aaru14
asked
Dec 7, 2017
Programming in C
data-structures
+
–
3
votes
1
answer
3489
Output of program
Consider the following code int main(){ char *str = "ABCDEF"; printf("%d",fun(str)); return 0; } int fun(int *p1){ int *p2 = p1; while(*++p1); return (p2-p1); } The output of given program is_________. Assume object of data type int occupies 2 bytes.
Consider the following codeint main(){ char *str = "ABCDEF"; printf("%d",fun(str)); return 0; } int fun(int *p1){ int *p2 = p1; while(*++p1); return (p2-p1); }The output ...
Rohit Gupta 8
1.0k
views
Rohit Gupta 8
asked
Oct 8, 2017
Programming in C
strings
bad-question
+
–
2
votes
1
answer
3490
MadeEasy Subject Test: Programming & DS - Programming in C
charul
534
views
charul
asked
Nov 14, 2017
Programming in C
made-easy-test-series
programming-in-c
programming
+
–
4
votes
2
answers
3491
C programming
Which of the following statements are correct about the below declarations? char *p = "Sanjay"; char a[] = "Sanjay"; 1: There is no difference in the declarations and both serve the same purpose. 2: p is a non-const pointer pointing to a non-const string, whereas a is a const ... at the end of the string "Sanjay". [A]. 1, 2 [B]. 2,3,4 [C]. 3, 4 [D]. 2, 3
Which of the following statements are correct about the below declarations?char *p = "Sanjay";char a[] = "Sanjay";1:There is no difference in the declarations and both se...
suvasish pal
1.3k
views
suvasish pal
asked
Aug 26, 2017
Programming in C
programming-in-c
+
–
0
votes
2
answers
3492
internet
consider the following declarations 1.int a[5]={1,2,3,4,5}; 2.int *p=(int*) malloc(sizeof(int)*5); which is true a.statement 1 take less tym than statement 2 for execution. b.statement 2 takes more tym than 1 for execution. c.both takes same tyme. d.cannot say about execution time.
consider the following declarations1.int a[5]={1,2,3,4,5};2.int *p=(int*) malloc(sizeof(int)*5);which is truea.statement 1 take less tym than statement 2 for execution.b....
eyeamgj
290
views
eyeamgj
asked
Nov 27, 2017
0
votes
0
answers
3493
MadeEasy Workbook: Programming & DS - Programming In C
how it will be solve plz someone help?
how it will be solve plz someone help?
aaru14
369
views
aaru14
asked
Nov 28, 2017
Programming in C
made-easy-booklet
programming
programming-in-c
+
–
0
votes
1
answer
3494
Find output of the program
#include<stdio.h> int main() { int a=2; if(a==2) { a=~a+2<<1; printf("%d",a); } }
#include<stdio.h>int main(){ int a=2;if(a==2){ a=~a+2<<1; printf("%d",a);}}
Parshu gate
374
views
Parshu gate
asked
Nov 19, 2017
Programming in C
output
programming
programming-in-c
+
–
3
votes
1
answer
3495
stackk
Consider implementation of stack using queue by following algorithm. Let x be an element to be pushed in the stack. push(q1, x) { EQ(q1,x) while (q1 does not contain 1 element) { k= DQ(q1) EQ(q1,k) } } pop(q1) { DQ(q1) } If we implement the above algorithm using linked list, what will be the time complexity for push and pop operations? O(n), O(n) O(logn), O(1) O(1), O(n) O(n), O(1)
Consider implementation of stack using queue by following algorithm.Let x be an element to be pushed in the stack.push(q1, x) {EQ(q1,x)while (q1 does not contain 1 elemen...
A_i_$_h
422
views
A_i_$_h
asked
Nov 2, 2017
1
votes
1
answer
3496
data structure
In a hash table of size 6, currently the locations 0, 2, 4 and 5 are occupied. The probability of a new record going into location 1, with a hash function resolving collisions by linear probing is (assume uniform hashing). (A) 2/3 (B) 1/3 (C) 1 (D) 1/6
In a hash table of size 6, currently the locations 0, 2, 4 and 5 are occupied. The probability of a new record going into location 1, with a hash function resolving colli...
Kaluti
542
views
Kaluti
asked
Nov 9, 2017
Programming in C
hashing
linear
probing
+
–
0
votes
1
answer
3497
Prograaming bits
What is the output of the following C program? #include <stdio.h> void main (void) { int shifty; shifty = 0570; shifty = shifty » 4; shifty = shifty « 6; printf("The value of shifty is %o \n",shifty); }
What is the output of the following C program? #include <stdio.h void main (void) { int shifty; shifty = 0570; shifty = shifty » 4; shifty = shifty « 6; printf("The val...
Niharika 1
223
views
Niharika 1
asked
Nov 29, 2017
3
votes
1
answer
3498
2. Linked List
Consider the given Doubly Linked List: Consider C like language code snippet with respect to doubly linked list given "p" is pointer to linked list node p=first->next->next->next->prev; p->next->next->prev=p; printf("%d",p->next->next->prev->next->data); What is the output?Plz explain
Consider the given Doubly Linked List:Consider C like language code snippet with respect to doubly linked list given"p" is pointer to linked list nodep=first->next->next-...
srestha
706
views
srestha
asked
Oct 17, 2017
DS
linked-list
data-structures
+
–
5
votes
2
answers
3499
infix to prefix
Convert following infix to prefix expression e^d-a*b^f/g+h*c/i+j-k Explain each step
Convert following infix to prefix expressione^d-a*b^f/g+h*c/i+j-kExplain each step
Pooja Palod
2.6k
views
Pooja Palod
asked
Oct 13, 2015
1
votes
1
answer
3500
doubt programming
difference between #define and typedef ??? please give logical answer not general answer
difference between #define and typedef ???please give logical answer not general answer
air1ankit
305
views
air1ankit
asked
Nov 23, 2017
Programming in C
programming-in-c
+
–
Page:
« prev
1
...
170
171
172
173
174
175
176
177
178
179
180
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register