Recent questions tagged programming-in-c

1 1 vote
1 1 answer
585
585 views
What will be the output of the following program? #include <stdio.h int main() { int i[] = {1,2,3}, j[] = {1,2,3}; int *p=i,*q=j; while ((*p++ = *q++) != 3) { printf("%d"...
1 1 vote
1 1 answer
462
462 views
I got answer as 20. But it's not in the options. Please have a look and help me.optionsa) 46b) 50c) 60d) 43
5 5 votes
3 answers 3 answers
684
684 views
Should this question be invalid? t[4] Mentions 4 elements, but question assigns 5 elements.Because according to my knowledge accessing element t[4] (if we consider index ...
1 1 vote
1 1 answer
343
343 views
Identify Correct Asymptotic Behviour.
1 1 vote
1 1 answer
735
735 views
consider a rooted binary tree with n nodes represented using pointers. What is the best possible upper bound to compute the number of such subtrees , which are full binar...
0 0 votes
0 0 answers
15
15 views
Find the output for the following C program? _____int fun ( int n ) {int x = 1, k ;if ( n == 1) return x ;for( k = 1 ; k < n ; ++ k )x = x + fun( k ) * fun( n - 2 ) ;retu...
1 1 vote
2 2 answers
453
453 views
Consider the following C++ code :for (i = 0; i < n; i++) for (j =0; j < n; j*=2) printf("hello world");The efficiency of the above loop in terms of number of iterations c...
0 0 votes
1 1 answer
181
181 views
The running time of TREESUCCESSOR procedure to find the successor of a node in a Binary Search Tree of height $h$ and Number of nodes $n$ is defined as$O(\mathrm{~h})$$O(...
1 1 vote
0 0 answers
216
216 views
Consider the following statements regarding Binary Search Tree:A height balanced tree is always a Binary Search TreeA complete Binary Search Tree may not be height balanc...
0 0 votes
0 0 answers
143
143 views
Consider the following statements regarding ORACLE triggers:Oracle supports both row triggers as well as statement triggersA trigger can be defined as either a before or ...
0 0 votes
0 0 answers
97
97 views
Which one of the following is related to int compareTo(Object obj) in java?It compares the numerical value of the invoking object with that of $f$. Returns 0 if the value...
0 0 votes
0 0 answers
128
128 views
What is the output if the following JavaScript program is executed by a typical web browser?namespace LanguageFeatures. Controllers { public class HomeController : Contro...
0 0 votes
0 0 answers
79
79 views
Which one of the following ASP.NET core objects is used for working with cookies in middleware components?IHttpContext and HttpRequestHttpRequest and HttpResponseICookieS...
0 0 votes
0 0 answers
114
114 views
Which one of the following HTTP status codes is used for errors, i.e., when access to the resource is not allowed for reasons other than invalid authentication?$403$ (For...