menu
Recent questions and answers in Programming
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Recent questions and answers in Programming
All Activity
Q&A
Questions
Unanswered
Tags
Categories
Users
Ask a Question
Blogs
Previous Year
Exams
Recent questions and answers in Programming
0
votes
0
answers
15
views
Operator
Question 4 * 12 + 20 -20 = 48; what is wrong with it . Ans = 47 how explain me please;
PrateekGiri
asked
in
Programming
Apr 12
by
PrateekGiri
5
points
15
views
programming-in-c
operators
0
votes
2
answers
1.6k
views
Made Easy Test Series
Select the incorrect statement. Binary search trees (regardless of the order in which the values are inserted into the tree): a. Always have multiple links per node. b. Can be sorted efficiently. c. Always have the same shape for a particular set of data. d. Are nonlinear data structures. How a is right? ANS: c. Always have the same shape for a particular set of data
Anas khan
answered
in
Programming
Dec 23, 2021
by
Anas khan
5
points
1.6k
views
0
votes
0
answers
65
views
Doubt about dynamic memory allocation
#include <stdio.h> #include<stdlib.h> int main() { int *x=NULL; x=(int*)malloc(sizeof(int)); *x=37; free(x); int *y=(int*)malloc(sizeof(int)); *y=40; printf("%d %d",*y,*x); return 0; } Output is 40 40 How this is coming?
_Madhuri
asked
in
Programming
Sep 7, 2021
by
_Madhuri
5
points
65
views
self-doubt
0
votes
0
answers
106
views
DS from MADEEASY postal book package 2022 page number 12
kishanrajput
asked
in
Programming
Sep 5, 2021
by
kishanrajput
5
points
106
views
data-structures
0
votes
0
answers
39
views
THIS IS A PROGRAM RELATED TO STRUCTURES CONCEPT IN C LANGUAGE
Kaneki
asked
in
Programming
Aug 12, 2021
by
Kaneki
5
points
39
views
data-structures
0
votes
0
answers
48
views
C LANGUAGE QUESTIONS
/* I HAVE COMMENTED MY ACTUAL QUESTION BELOW*/ #include<stdio.h> struct health{ #include<stdio.h> struct health { long long int mobile_no; int weight; float temperature; char blood_grp[10]; float height; }; int main() { int n; printf("Enter number of ... ;,sh[i].blood_grp); printf("\n%f",sh[i].height); } } return 0; } /* PLEASE CLARIFY MY QUERY*/
Kaneki
asked
in
Programming
Aug 12, 2021
by
Kaneki
5
points
48
views
programming
cprogramming
0
votes
0
answers
57
views
Applied AI
There is a question in the test series of Applied Gate. This is a not a min heap, as far as i can understand. Can someone clarify how this is a min-heap?
Ranjan.ashishmit
asked
in
Programming
Aug 12, 2021
by
Ranjan.ashishmit
5
points
57
views
data-structures
0
votes
0
answers
45
views
Ace Academy Practice volume-2, Divide and conquer
The worst case time complexity required for an efficient algorithm to compute the number of inversions in any permutation of n elements, stored in an array, are Θ(n^2) Θ(nlogn) Θ (2^n) Θ (n)
abhilashbal
asked
in
Programming
Aug 12, 2021
by
abhilashbal
5
points
45
views
divide-and-conquer
0
votes
0
answers
23
views
Cprogramming
Write a program to reverse each word of a string and print vowels in a capital letters in the reversed string. Is it possible to do because Strings are immutable.
Kaneki
asked
in
Programming
Aug 3, 2021
by
Kaneki
5
points
23
views
programming
cprogramming
0
votes
0
answers
55
views
Self Doubt from Structure
Why Structures can’t have static members? Also if there is a static function in some file and in another file we are trying to use that function using extern then is it accessible?
Ananya Nayak
asked
in
Programming
Aug 1, 2021
by
Ananya Nayak
5
points
55
views
programming
programming-in-c
self-doubt
0
votes
0
answers
25
views
Self doubt
Is global structure a static structure and what do we exactly mean by a static structure?
Ananya Nayak
asked
in
Programming
Aug 1, 2021
by
Ananya Nayak
5
points
25
views
self-doubt
programming
programming-in-c
0
votes
0
answers
68
views
Programming In C
Find the output of the program int main(void) { int i,j; for(j=i+1,i=1;i<=5;j++,i++) { printf(“%d%d\n”,i,j); } return 0; }
ShivangiChauhan
asked
in
Programming
Jul 24, 2021
by
ShivangiChauhan
17
points
68
views
programming
self-doubt
cprogramming
0
votes
0
answers
66
views
Programming Paradigms - Cain, Stanford
I was going through the link for best videos in Programming to be able to solve more output based questions in Gate. In the link : https://gatecse.in/best-video-lectures-for-gate-cse/ . It’s given “Doesn’t cover the entire GATE syllabus in programming but useful” Can I know what is missing, and from where to learn for rest of GATE syllabus?
xlr8_r
asked
in
Programming
Jul 18, 2021
by
xlr8_r
5
points
66
views
programming
0
votes
0
answers
80
views
File handling in c
Hi Is File handling topic in c programming is important for gate Or not It is necessary for doing file handling topic for gate ? Thank you
ykrishnay
asked
in
Programming
Jul 14, 2021
by
ykrishnay
103
points
80
views
programming
self-doubt
cprogramming
0
votes
0
answers
51
views
Self Doubt. My exam question in college
Convert the following expressions using stacks (a) Infix to postfix: ((m+n)*p)-r^s^t (b) Infix to prefix: (E+F^G)*H+J^5
code-death
asked
in
Programming
Jul 13, 2021
by
code-death
5
points
51
views
admission
0
votes
0
answers
20
views
Recursion
In case of recursion,if there is push operation continuously going on in stack then that program will go for abnormal termination due to stackoverflow??
Vink7389
asked
in
Programming
Jul 8, 2021
by
Vink7389
9
points
20
views
self-doubt
0
votes
0
answers
31
views
Gate 2006
Can you tell me step by step difference between while((i++)%2==0) and while(i++%2==0)
Kanchan0
asked
in
Programming
Jul 4, 2021
by
Kanchan0
5
points
31
views
self-doubt
0
votes
0
answers
56
views
C variable scope
What is the scope of an external variable? From the point of declaration to the end of the file being compiled Any source file in a program From the point of declaration to the end of the file in which it is defined Whole source file in which it is defined… Its answer is option A but how? it can be option 3 also.
PPrawal
asked
in
Programming
Jul 2, 2021
by
PPrawal
9
points
56
views
cprogramming
0
votes
0
answers
25
views
programing loops
Q 19. for (I=1 ; I<=n ; J++) for (J=I +1 ; J<=n ; J++) for (K=1 ; K<=J ; K++) printf(“pankaj”); how many time pankaj will be printed sole with sumation method
Kunal Sawant
asked
in
Programming
Jul 1, 2021
by
Kunal Sawant
5
points
25
views
programming
programming-in-c
0
votes
0
answers
46
views
find meh
// C++ implementation to find the character in first // string that is present at minimum index in second // string #include <bits/stdc++.h> using namespace std; // function to find the minimum index character void printMinIndexChar(string str, string ... in unordered map or not because it only returns true or false but how can we assign the character inside the if condition.
Lekhraj
asked
in
Programming
Jun 23, 2021
by
Lekhraj
9
points
46
views
algorithms
hash-table
0
votes
0
answers
56
views
Made easy workbook c programming question
The correct answer is (b). I am not able to understand how it is the correct answer, please explain.
akshansh
asked
in
Programming
Jun 15, 2021
by
akshansh
15
points
56
views
programming
made-easy-workbook
operators
0
votes
0
answers
49
views
Igate bhilai test gate 2022
What is the output of program? void swap (char *x, char *y) { char *t = x; x = y; y = t; } int main() { char *x = "IGATE"; char *y = "BEST IN CG"; char *t; swap(x, y); printf("(%s, %s)", x, y); t = x; x = y; y ... BEST IN CG, IGATE) (IGATE, BEST IN CG) . C: (IGATE, BEST IN CG) (IGATE, BEST IN CG). D: (BEST IN CG, IGATE) (BEST IN CG, IGATE).
DKY123
asked
in
Programming
Jun 11, 2021
by
DKY123
15
points
49
views
test-series
0
votes
1
answer
84
views
Madeeasy test series gate 2022
The value of k at the end of the execution of following program: int increase(int p) { int amount = 0; amount = amount +p; return(amount); } main( ) { int i, j, k; for(i = 0: i < 4; i++) { for( j = 0: j <=i; j++) { k = increase(j); } } } A) 4 B) 10 C) 20 D) 6
Subhajit Panday
answered
in
Programming
Jun 9, 2021
by
Subhajit Panday
11
points
84
views
test-series
0
votes
0
answers
29
views
Madeeasy test series gate 2021
Consider the following C function: void f(int m) { while (m! = 0) { if(!(m &1)) printf("hello"); m = m >> 1; } } The number of times printf("hello") statement is executed, when 2048 is passed to the function ()
DKY123
asked
in
Programming
Jun 8, 2021
by
DKY123
15
points
29
views
test-series
0
votes
0
answers
25
views
Madeeasy test series gate 2021
which of the following is/are illegal after the following declaration int A[10],B[20],*C; A) A=B B) B=A C) A= C D) C=A
DKY123
asked
in
Programming
Jun 8, 2021
by
DKY123
15
points
25
views
test-series
1
vote
1
answer
53
views
Madeeasy test series gate 2022
What does the following function declare int *(*p)(char (*a) []); A)p is a pointer to a function that takes an argument as pointer and returns an integer. B) p is a pointer to a function takes an argument as pointer to a character and ... to a function that takes an argument as array of pointers to characters and returns a pointer to an integer. D) None of these.
Palash yadav
answered
in
Programming
Jun 7, 2021
by
Palash yadav
135
points
53
views
test-series
0
votes
0
answers
42
views
Madeeasy test series gate 2022
Which rule of recursion is violated in the following code int rec(int n) { if(n == 0) return 0; else return (n + rec(n/2) +rec(n/2+ 1); } A) No base case B ) Fails to make progress C) It performs redundant work D) No violation
DKY123
asked
in
Programming
Jun 6, 2021
by
DKY123
15
points
42
views
test-series
0
votes
0
answers
35
views
C programming
Write a C macro without using any conditional checks to set or reset a particular bit in a variable based on the third argument. SETRESET (variable, bitposition, set/reset) Could you help me with this??
suryavasu1012
asked
in
Programming
Jun 2, 2021
by
suryavasu1012
9
points
35
views
programming
0
votes
0
answers
41
views
Reference from GATE IT-2005 (2 marks)
"In Binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2." How is this statement valid in case of Left or Right Skewed Binary tree?
Anupreet13
asked
in
Programming
May 2, 2021
by
Anupreet13
5
points
41
views
self-doubt
algorithms
binary-tree
0
votes
0
answers
48
views
Self Doubt in programming
#include <iostream> using namespace std; int main() { int a[3][4][2] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; printf("%d", *((*(a+2)-3))[2]); return 0; } How the output of this code coming out to be 15. Can someone please explain this?
CSHuB
asked
in
Programming
May 2, 2021
by
CSHuB
33
points
48
views
programming
0
votes
0
answers
54
views
Memory Allocation for literal constants other than string
akshansh
asked
in
Programming
Apr 10, 2021
by
akshansh
15
points
54
views
programming
memory
pointers
1
vote
1
answer
95
views
type conversion in c programming
https://www.onlinegdb.com/edit/r1CBB9EHO #include<stdio.h> int main() { short int i = 10; char c = 'a'; float p = 3.0; short int s = i+c; printf("%d\n", sizeof(short int)); //size of short int is 2 printf("%d\n", ... short int whose size should be 2. */ printf("%d", sizeof(s)); // though here it is 2 which is correct. return 0; }
Konan-kun
answered
in
Programming
Apr 5, 2021
by
Konan-kun
71
points
95
views
programming
0
votes
0
answers
54
views
c programing storage classes
please explain the difference in extern and global variable both have global scope then what is the difference how they used as in programme
gurichouhan
asked
in
Programming
Mar 29, 2021
by
gurichouhan
5
points
54
views
programming
0
votes
0
answers
92
views
Jest sample paper question number 7
function mu(a,b:integer) returns integer; var i,y: integer; begin ---------P---------- i = 0; y = 0; while (i < a) do begin --------Q------------ y := y + b ; i = i + 1 end return y end I arrived at the answer that Q=y<a P=y<i
hari1998
asked
in
Programming
Mar 21, 2021
by
hari1998
5
points
92
views
programming
1
vote
1
answer
80
views
Self doubt Pointers
Please explain how to get the outputs here? void main() { int i=255, j; char *p; p=&i; j=*p; *p=32; printf("%d %d",i,j); } void main() { int i=265, j; char *p; p=&i; j=*p; *p=32; printf("%d %d",i,j); }
krish71
answered
in
Programming
Mar 13, 2021
by
krish71
5
points
80
views
programming
pointers
0
votes
0
answers
60
views
#pointer properties
#include<stdio.h> int main() { char *s[] = { "knowledge","is","power"}; char **p; p = s; printf("%s ", ++*p); printf("%s ", *p++); printf("%s ", ++*p); return 0; }
Sur_1611
asked
in
Programming
Feb 21, 2021
by
Sur_1611
5
points
60
views
self-doubt
0
votes
0
answers
43
views
#operators_pointers_string
#include <stdio.h> #define VAL 32 int main() { char arr[] = "geeksquiz"; *(arr + 0) &= ~VAL; *(arr + 5) &= ~VAL; printf("%s", arr); return 0; }
Sur_1611
asked
in
Programming
Feb 18, 2021
by
Sur_1611
5
points
43
views
programming
3
votes
5
answers
1.5k
views
GATE CSE 2021 Set 2 | Question: 10 | Video Solution
Arjun
asked
in
Programming
Feb 18, 2021
by
Arjun
1.4k
points
1.5k
views
gate2021-cse-set2
programming-in-c
arrays
output
0
votes
2
answers
746
views
GATE CSE 2021 Set 2 | Question: 35 | Video Solution
Arjun
asked
in
Programming
Feb 18, 2021
by
Arjun
1.4k
points
746
views
gate2021-cse-set2
programming-in-c
normal
pointers
1
vote
2
answers
620
views
GATE CSE 2021 Set 1 | Question: 37 | Video Solution
Arjun
asked
in
Programming
Feb 18, 2021
by
Arjun
1.4k
points
620
views
gate2021-cse-set1
programming-in-c
To see more, click for all the
questions in this category
.
Ask a Question
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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users
2022 May 23 - 29
Weekly Top User (excluding moderators) will get free access to
GATE Overflow Test Series for GATE 2021
Recent Posts
New GATEOverflow PDFs
Guidelines to users
No Recent Blog Comments
Recent questions and answers in Programming
Search GATE CSE Doubts