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
Most answered questions in Programming in C
#201
648
views
2
answers
6
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 13
What will be the output of following program ?#include <stdio.h int thefunction(int a) { static int b = 0; b++; a = a + b; return a; } int main() { int b = 0; int i; for ...
GO Classes
648
views
GO Classes
asked
Jan 21
Programming in C
goclasses2024-mockgate-12
goclasses
numerical-answers
programming
programming-in-c
storage-classes-in-c
1-mark
+
–
#202
1.6k
views
2
answers
1
votes
c pointers
main() { char *p1="name"; char *p2; p2=(char*)malloc(20); memset(p2,0,20); while(*p2++=*p1++); printf("%s\n",p2); }
akankshadewangan24
1.6k
views
akankshadewangan24
asked
Apr 14, 2017
#203
348
views
2
answers
0
votes
How to take inputs for a string ?
How to take inputs for a string ?Example:- #include<stdio.h #include<stdlib.h #include<conio.h #include<string.h #define MAX 10000 int main() { char*str; int i,te...
Adiaspirant
348
views
Adiaspirant
asked
Apr 8, 2017
Programming in C
programming-in-c
+
–
#204
1.4k
views
2
answers
1
votes
Dynamic declaration of 2D array
Dynamic declaration of 2D arrayint arr=(int ) malloc(r* sizeof(int*));for(i=0; i<r; i++) arr[i]=(int*) malloc(c* sizeof(int));can anyone explain these lines?
shebya nautiyal
1.4k
views
shebya nautiyal
asked
Apr 5, 2017
Programming in C
programming-in-c
+
–
#205
3.0k
views
2
answers
2
votes
c language
#include <stdio.h int main() { int a = 1; int b = 1; int c = a || b; printf("%d %d",c,b); }Answer is given 1, 1 but i m having doubt in logical OR operator and uninary ...
rajan
3.0k
views
rajan
asked
Apr 4, 2017
#206
428
views
2
answers
2
votes
cil-2017
VS
428
views
VS
asked
Apr 2, 2017
Programming in C
cil-2017
+
–
#207
682
views
2
answers
0
votes
Programming in C -Dennis Ritchie
My question is when I give :i/p - abcdehow i get output - abcde .I mean C is a character so shouldn't o/p also be an single character . Why is o/p coming out to be be str...
anonymous
682
views
anonymous
asked
Mar 29, 2017
Programming in C
programming-in-c
+
–
#208
902
views
2
answers
2
votes
error in the code
why is it showing error??#include <stdio.h>int main() { extern int i; i=20; printf("%d",i);}
Akriti sood
902
views
Akriti sood
asked
Mar 24, 2017
Programming in C
programming-in-c
+
–
#209
1.3k
views
2
answers
1
votes
C programming doubt
I am getting segmentation fault for the following code.Please help to rectify. #include <stdio.h #include <stdlib.h struct person { int age; float weight; char *name; }; ...
Pranabesh Ghosh 1
1.3k
views
Pranabesh Ghosh 1
asked
Mar 23, 2017
#210
1.4k
views
2
answers
1
votes
C Programming (interview)
WAP where smallest subarrays with sum greater than x?Say an array={1,5,6,2,45,17};Now, x=60Now we have to find smallest subarray which is greater than x
srestha
1.4k
views
srestha
asked
Mar 23, 2017
Programming in C
programming-in-c
output
+
–
#211
4.4k
views
2
answers
1
votes
full binary tree , complete and almost complete binary tree difference
what is the difference between all these types of trees1)full binary tree 2) complete binary tree 3) almost complete binary tree 4)perfect binary tree 5)strictly binary t...
Meenakshi Sharma
4.4k
views
Meenakshi Sharma
asked
Mar 19, 2017
#212
625
views
2
answers
1
votes
c programming
#include <stdio.h int K = 4; int a ; unsigned int m; int* check(unsigned int n) { int res = 1; int count = 0; for(int i=0;i<K;i++) if(!(n&(1<<i))) { count++; res = 0; } a...
dd
625
views
dd
asked
Mar 19, 2017
Programming in C
programming-in-c
+
–
#213
1.5k
views
2
answers
0
votes
typedef
typedef int (*test)(float*, float*);test tmp; i am unable to understand the code ,please help!
Learner_jai
1.5k
views
Learner_jai
asked
Mar 13, 2017
#214
1.3k
views
2
answers
0
votes
TECHTUD, C PROGRAMMING
moin
1.3k
views
moin
asked
Mar 8, 2017
Programming in C
programming-in-c
output
+
–
#215
1.5k
views
2
answers
0
votes
ISRO 2008-ECE exit() function
The library function exit ( ) causes as exit from (a) the loop in which it occurs(b) the block is which it occurs(c) the functions in which it occurs(d) the progam in whi...
sh!va
1.5k
views
sh!va
asked
Mar 2, 2017
Programming in C
isro-ece
programming
+
–
#216
1.0k
views
2
answers
0
votes
output of program
If the following fragment (assume negative numbers are stored in 2's complement form)unsigned i=1;int j=-4;printf("%u",i+j);prints x then printf("%d", 8*sizeof(int));outp...
Sanjay Sharma
1.0k
views
Sanjay Sharma
asked
Feb 27, 2017
#217
2.7k
views
2
answers
2
votes
let x be an array of integer which of the following can not be present in the LHS of an assignment statement
let x be an array of integer . which of the following can not be present in the left hand side of an assignment statementa)x b) x+i c) * (x+i) d) &x[i]
Sanjay Sharma
2.7k
views
Sanjay Sharma
asked
Feb 18, 2017
#218
2.2k
views
2
answers
0
votes
difference between if(a=0) and if(a=non zero)
what is the differernce between if (a=0) and if (a= -7) or any other non-zero number e.g what will be the out put of following program a)if ( a=0)printf(""a is zero ")els...
Sanjay Sharma
2.2k
views
Sanjay Sharma
asked
Feb 17, 2017
#219
847
views
2
answers
0
votes
2017_1_42
#include <stdio.h int total(int v) { static int count=0; while(v){ count+=v&1; v>>=1; } return count; } void main() { // your code goes here static int x=0; int i=5; for(...
harveen singh
847
views
harveen singh
asked
Feb 14, 2017
#220
5.9k
views
2
answers
3
votes
Given a hash table with n keys and m slots, with the simple uniform hashing assumption.....
Given a hash table with n keys and m slots, with the simple uniform hashing assumption (each key is equally likely to be hashed into each slot). Collisions are resolved b...
Smriti012
5.9k
views
Smriti012
asked
Feb 3, 2017
Programming in C
hashing
data-structures
chaining
+
–
Page:
« prev
1
...
6
7
8
9
10
11
12
13
14
15
16
...
206
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register