The Gateway to Computer Science Excellence
For all GATE CSE Questions
Toggle navigation
GATE Overflow
Facebook Login
Google Login
or
Email or Username
Password
Remember
Login
Register

I forgot my password
All Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous
Blogs
New Blog
Exam Category
Exams
First time here? Checkout the
FAQ
!
x
×
Close
Use the google search bar on side panel. It searches through all previous GATE/other questions.
Answers by vijay_jr
User vijay_jr
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
User vijay_jr
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
0
votes
1
GATE 201612
Let $a_n$ be the number of $n$bit strings that do NOT contain two consecutive $1's$. Which one of the following is the recurrence relation for $a_n$? $a_n = a_{n1}+ 2a_{n2}$ $a_n = a_{n1}+ a_{n2}$ $a_n = 2a_{n1}+ a_{n2}$ $a_n = 2a_{n1}+ 2a_{n2}$
answered
Jul 23
in
Combinatory

1.4k
views
gate20161
permutationsandcombinations
recurrence
easy
0
votes
2
explain the output please.
#include <stdio.h> #include <string.h> void fun(char *arr) { int i; unsigned int n = sizeof(arr); printf("n = %d\n", n); for (i=0; i<n; i++) printf("%c ", arr[i]); } // Driver program int main() { char arr[] = {'k', 'h', 'u', 's', 'h', 'a', 'l'}; fun(arr); return 0; }
answered
Jul 10
in
Programming

205
views
programminginc
0
votes
3
sql query
consider the following table T A B 1 5 2 10 3 15 SELECT * FROM T WHERE EXISTS (SELECT COUNT(*) FROM T WHERE B=2); NO. of rows returned by above query__________
answered
Jul 8
in
Databases

20
views
+1
vote
4
Linear Algebra by Gilbert strang, 4th edition, 5.1.13
answered
Jul 8
in
Linear Algebra

100
views
gilbertstrang
linearalgebra
engineeringmathematics
0
votes
5
getc in c
if getc returns an integer value, then why is it returning the value that a user inputs. #include <stdio.h> int main() { printf("%c", getc(stdin)); return(0); }
answered
Jul 6
in
Programming

62
views
programminginc
getc
0
votes
6
checksum
check sum of 1001001110010011 and 1001100001001101 of 16 bit segment is a)1010101000011111 b)1011111000100101 c)1101010000011110 d)1101010000111111
answered
Jul 1, 2016
in
Computer Networks

297
views
29,006
questions
36,838
answers
91,329
comments
34,718
users