Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Filter
User aehkn
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by aehkn
1
vote
31
defualt mask,network address,broadcast and network id and host id for this ip address ?
defualt mask,network address,broadcast and network id and host id for this ip address : 173.200.30.100
answered
in
Computer Networks
Apr 11, 2017
854
views
computer-networks
0
votes
32
malloc
What does the following exactly mean? int *p=(int*)malloc(23); Does it mean that the OS allocates a memory of 23 bytes to int(though it requires just 4 bytes)? I know that to make malloc platform independent, we use sizeof, but what if we use the above syntax ... "%d",sizeof(*p)), I get the answer as 4. Why? Should'nt it return 23 since that's what the memory I allocated?
answered
in
DS
Apr 11, 2017
796
views
memory-management
data-structures
programming-in-c
1
vote
33
In a Frame Relay network,if the input data rate of router is 44.56 mb/s and output data rate of same router is 39.53
answered
in
Computer Networks
Apr 9, 2017
908
views
computer-networks
0
votes
34
#SlidingWindow
The efficiency of a 16 Mbps ethernet is 3/4.Cable length is 100 km and frame size is 1000 bytes.If the network is using sliding window protocol,what is the window size?
answered
in
Computer Networks
Apr 9, 2017
491
views
3
votes
35
BASIC QUESTION ABOUT C LANGUAGE(number store in c language)
As we know any negative number is stored in c language in 2's complement form. as for example:- #include <stdio.h> int main() { int x=-12; printf("%d\n",x); x=(~12); printf("%d",x); return 0; } ... . when we print -12 then how it print -12.(after storing -12 into 2's compliment) Q2).how ~(12) prints -13
answered
in
Programming in C
Apr 9, 2017
410
views
1
vote
36
#SlidingWindow
In an ethernet using sliding window protocol ,sender window size is 5 and receiver window size is 3.How many bits are required to store maximum sequence number??
answered
in
Computer Networks
Apr 9, 2017
279
views
1
vote
37
Asymptotic Notation
Big 'O' estimate for Factorial Functions and Logarithm of Factorial Function i.e. n! and log n! is a)O(n!) and O(n log n) b)O(nn) and O(n log n) c)O(n!) and O(log n!) d)O(nn) and O(log n!)
answered
in
Algorithms
Apr 9, 2017
2.3k
views
algorithms
asymptotic-notation
2
votes
38
Time complexity of fractionak knapsack using greedy algorithm is O(n^2)??TRUE/FALSE
i know time complexity is O(nlogn) but can upper bound given in question consider as TRUE..
answered
in
Algorithms
Apr 6, 2017
13.3k
views
greedy-algorithm
algorithms
1
vote
39
Programming and time complexity
This is a recursive function to generate all possible n pairs of balanced parentheses for a given value of n<=20. Input: 1 Output: {} Input: 2 Output: {}{} {{}} What is the time complexity of the following code? Also, can it be done using Dynamic ... int main() { int n; scanf("%d", &n); printParenthesis(0, n, 0, 0); getchar(); return 0; }
answered
in
Programming in C
Apr 5, 2017
561
views
1
vote
40
context free grammar
Do the following productions mean the same Bb->bb and B->b My doubt is that will the first production be used only when we have b in the follow of B or it can be used in any case. If it can be used in any case then will the first production be equal to second production.
answered
in
Theory of Computation
Apr 5, 2017
506
views
context-free-grammar
context-free-language
theory-of-computation
0
votes
41
Virtual Gate Test Series: Programming & DS - Output Of The Program
What will be the output$?$ int main() { int varl = 35,*var2,*var3; var2 = &var1; //suppose the address of var1 is 1006 var3 = var2; *var2++ = *var3++; var1++; printf("var1 = %d var2 = %d var3 = %d ",var1,var2,var3); return 0; } 36 1010 1010 38 1006 1006 37 1006 1010 38 1010 1006
answered
in
Programming in C
Apr 2, 2017
859
views
programming-in-c
output
virtual-gate-test-series
0
votes
42
Virtual Gate Test Series: Programming & DS - Output Of The Program
What will be the output$?$ int main() { int varl = 35,*var2,*var3; var2 = &var1; //suppose the address of var1 is 1006 var3 = var2; *var2++ = *var3++; var1++; printf("var1 = %d var2 = %d var3 = %d ",var1,var2,var3); return 0; } 36 1010 1010 38 1006 1006 37 1006 1010 38 1010 1006
answered
in
Programming in C
Apr 2, 2017
859
views
programming-in-c
output
virtual-gate-test-series
0
votes
43
Virtual Gate Test Series: Programming & DS - Define
#define THIS 0 #define THAT 0 #include <stdio.h> int main(int argc, char const *argv[]) { #ifdef THIS && THAT printf("if\n"); #else printf("else\n"); #endif return 0; } What is the output? What happens if the first two lines are not initializing. i.e., #define THIS #define THAT
answered
in
Programming in C
Apr 2, 2017
285
views
programming-in-c
virtual-gate-test-series
1
vote
44
Virtual Gate Test Series: Programming & DS - C Program Output
Find the out put of the following C program. main() { char *ptr = "techtud"; char p= (*ptr)++; printf("%s\n",ptr); } the output of the program came as$?$
answered
in
Programming in C
Mar 27, 2017
523
views
programming-in-c
output
virtual-gate-test-series
Page:
« prev
1
2
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...