Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Recent activity by HanuamntappaBudihal
1
answer
1
# cprogramming
#include<stdio.h> int main() { int M = 2; int arr[M][M] = {0}; // Trying to initialize all values as 0 int i, j; for (i = 0; i < M; i++) { for (j = 0; j < M; j++) printf ("%d ", arr[i][j]); printf("\n"); } return 0; } what happen
#include<stdio.h int main() { int M = 2; int arr[M][M] = {0}; // Trying to initialize all values as 0 int i, j; for (i = 0; i < M; i++) { for (j = 0; j < M; j++) ...
472
views
answered
Dec 30, 2019
Programming in C
programming-in-c
+
–
2
answers
2
Output Under Dynamic Scoping
#include<stdio.h> int x=10; int main() { static int x=10; x+=f1()+f2()+f3()+f1(); printf("%d",x); return 0; } int f1(){static int x=25;x++;return x;} int f2(){int x=50;x++;return x;} int f3(){x*=10;return x;} What is the output of the above code, if dynamic scoping is used.
#include<stdio.h int x=10; int main() { static int x=10; x+=f1()+f2()+f3()+f1(); printf("%d",x); return 0; } int f1(){static int x=25;x++;return x;} int f2(){int x=50;x++...
2.1k
views
answered
Dec 29, 2019
Programming in C
dynamic-scoping
programming
+
–
2
answers
3
#c lang
void main() { int i=6; for(--i; --i; i--) { printf(“%d”,i); } }
void main() { int i=6; for( i; i; i ) { printf(“%d”,i); } }
597
views
answered
Dec 29, 2019
Programming in C
programming-in-c
for-loop
+
–
3
answers
4
DS and programming
#include <stdio.h> int arr[] = { 10, 20, 30, 40, 50 }; static int count ; inc() { return ++count; } int main() { arr[count++]=inc(); printf("%d ", arr[count]); printf("%d ", arr[0]); } https://ideone.com/5LOuqj
#include <stdio.h>int arr[] = { 10, 20, 30, 40, 50 };static int count ;inc() {return ++count;}int main(){arr[count++]=inc();printf("%d ", arr[count]);printf("%d ", arr[0]...
1.8k
views
commented
Dec 29, 2019
Programming in C
data-structures
programming-in-c
output
+
–
1
answer
5
Please solve this Q
470
views
commented
Dec 29, 2019
DS
data-structures
tree-traversal
+
–
3
answers
6
ME MOCK 4
Consider the following function: void madeeasy (int n) { if (n < 0) return; else { printf(n); madeeasy (- -n); madeeasy (n - -); printf(n); } } The sum of all values printed by madeeasy (5)_______ (I am getting -12 but given answer is 52)
Consider the following function:void madeeasy (int n) { if (n < 0) return; else { printf(n); madeeasy (- -n); madeeasy (n - -); printf(n); } }The sum of all values printe...
1.7k
views
answered
Dec 8, 2019
Programming in C
programming-in-c
recursion
made-easy-test-series
+
–
1
answer
7
MadeEasy WorkBook: Programming & DS - Programming in C
for(i=10;i<10;++i) printf("%d" i&1) prints (a) 0101010101 (b) 0111111111 (c) 0000000000 (d) 1111111111
for(i=10;i<10;++i)printf("%d" i&1)prints(a) 0101010101(b) 0111111111(c) 0000000000(d) 1111111111
727
views
answered
Dec 7, 2019
Programming in C
made-easy-booklet
programming
programming-in-c
+
–
3
answers
8
CMI2019-A-10
The next two questions refer to the following program. In the code below reverse$(A,i,j)$ takes an array $A,$ indices $i$ and $j$ with $i\leq j,$ and reverses the segment $A[i],A[i+1],\cdots,A[j].$ For instance if $A=[0,1,2,3,4,5,6,7]$ then, after we ... return; } The number of times the test $A[ j ] > A[ m ]$ is executed is: $4950$ $5050$ $10000$ Depends on the contents of $A$
The next two questions refer to the following program.In the code below reverse$(A,i,j)$ takes an array $A,$ indices $i$ and $j$ with $i\leq j,$ and reverses the segment ...
648
views
answer edited
Dec 2, 2019
Programming in C
cmi2019
identify-function
+
–
4
answers
9
Book: MCQs in Computer Science by TJ williams
A sorting technique that guarantees that records with same primary key in the same order in the sorted list as in the original unsorted list is said to be....
A sorting technique that guarantees that records with same primary key in the same order in the sorted list as in the original unsorted list is said to be....
2.7k
views
answered
Dec 2, 2019
4
answers
10
C-Programming
Find output #include<stdio.h> void main() { int i=0; for(; i++ ; printf("%d",i)); printf("%d",i); } Plz explain ?
Find output #include<stdio.h void main() { int i=0; for(; i++ ; printf("%d",i)); printf("%d",i); }Plz explain ?
1.2k
views
answered
Nov 28, 2019
2
answers
11
C Que
main() { unsigned i = 3; if(i > -1) printf("Hell"); else printf("Heaven"); } Here since i is unsigned type....-1 should be converted to unsigned type for comparison..What would -1 be in unsigned ....or with what value should i be compared in if(i > -1).....? Plz explain...
main() { unsigned i = 3; if(i -1) printf("Hell"); else printf("Heaven"); }Here since i is unsigned type....-1 should be converted to unsigned type for comparison..What w...
829
views
commented
Nov 28, 2019
Programming in C
programming-in-c
+
–
1
answer
12
tree traversal
when is it possible in binary search tree that (preorder,inorder) ,(postorder,inorder),and (preorder,postorder) are equal.please explain AND what about binary tree
when is it possible in binary search tree that (preorder,inorder) ,(postorder,inorder),and (preorder,postorder) are equal.please explain AND what about binary tree
767
views
commented
Nov 28, 2019
3
answers
13
ISI2014-DCG-10
The number of divisors of $6000$, where $1$ and $6000$ are also considered as divisors of $6000$ is $40$ $50$ $60$ $30$
The number of divisors of $6000$, where $1$ and $6000$ are also considered as divisors of $6000$ is$40$$50$$60$$30$
1.1k
views
commented
Nov 26, 2019
Quantitative Aptitude
isi2014-dcg
quantitative-aptitude
number-system
factors
+
–
5
answers
14
GATE CSE 2012 | Question: 3
What will be the output of the following C program segment? char inChar = 'A'; switch ( inChar ) { case 'A' : printf ("Choice A \ n"); case 'B' : case 'C' : printf ("Choice B"); case ... : printf ("No Choice"); } No Choice Choice A Choice A Choice B No Choice Program gives no output as it is erroneous
What will be the output of the following C program segment?char inChar = 'A'; switch ( inChar ) { case 'A' : printf ("Choice A \ n"); case 'B' : case 'C' : printf ("Choic...
11.0k
views
answer edited
Nov 21, 2019
Programming in C
gatecse-2012
programming
easy
programming-in-c
switch-case
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register