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
MadeEasy Subject Test 2019: Programming & DS - Programming In C
Shamim Ahmed
asked
in
Programming in C
Dec 11, 2018
retagged
Mar 4, 2019
by
akash.dinkar12
540
views
3
votes
3
votes
char *a = “MADEEASY”;
char *b = “GATECSIT2019”;
char *r = a;
char *s = b;
printf(“%d”, (int) strlen (b+3[r] – 1[s]));
return 0;
Whats the output? Answer given 8
made-easy-test-series
programming
programming-in-c
pointers
Shamim Ahmed
asked
in
Programming in C
Dec 11, 2018
retagged
Mar 4, 2019
by
akash.dinkar12
by
Shamim Ahmed
540
views
answer
comment
Follow
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
2
Answers
4
votes
4
votes
Best answer
b+3[r]-1[s]
= &b[0] + r[3] - s[1]
=&b[0] + 'E' - 'A'
=&b[0] + 4
=&b[4]
="CSIT2009"
strlen("CSIT2009") = 8
kd.....
answered
Dec 11, 2018
selected
Dec 22, 2018
by
Lakshman Bhaiya
by
kd.....
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
0
votes
0
votes
3[r] means r+3 and 1[s] means s+1 so r+3 will be D ans s+1 will be A so subtracting it we get value as 3
now b+3 is means string length after E which is CSIT2019 which is of length 8
Navneet Kalra
answered
Dec 11, 2018
by
Navneet Kalra
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
2
votes
2
votes
0
answers
1
srestha
asked
in
Programming in C
Jan 28, 2019
618
views
MadeEasy Subject Test 2019: Programming & DS - programming in C
void foo(int n) { for(i1=1;i1<=n;i1++) { for(i2=1;i2<=i1;i2++) { ....... { for(i6=1;i6<=i5;i6++) { count++; } } } } } Count initially 0.What is value returned by foo(8)?
srestha
asked
in
Programming in C
Jan 28, 2019
by
srestha
618
views
programming-in-c
programming
made-easy-test-series
2
votes
2
votes
2
answers
2
Shamim Ahmed
asked
in
Programming in C
Dec 11, 2018
706
views
MadeEasy Subject Test 2019: Programming & DS - Programming In C
main(){ int S[6] = {126,256,512,1024,2048,4096}; int *x=(int *) (&S+1); printf (“%d”,x); } int is 4 bytes; array starts from 2000 . The answer is 2024 I am getting 2004. Please explain the concept. If possible provide a resource.
Shamim Ahmed
asked
in
Programming in C
Dec 11, 2018
by
Shamim Ahmed
706
views
made-easy-test-series
programming
programming-in-c
array
0
votes
0
votes
0
answers
3
jatin khachane 1
asked
in
Programming in C
Nov 23, 2018
452
views
MadeEasy Test Series: Programming & DS - Programming In C
jatin khachane 1
asked
in
Programming in C
Nov 23, 2018
by
jatin khachane 1
452
views
made-easy-test-series
programming
pointers
3
votes
3
votes
2
answers
4
Sakshi Jaiswal
asked
in
Programming in C
Oct 1, 2018
904
views
MadeEasy Test Series: Programming & DS - Programming In C
Sakshi Jaiswal
asked
in
Programming in C
Oct 1, 2018
by
Sakshi Jaiswal
904
views
made-easy-test-series
programming
pointers
array
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)
Programming
(4.1k)
Programming in C
(4.1k)
Programming in Python
(5)
DS
(2.0k)
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
(683)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
243k
comments
79.7k
users
Recent Blog Comments
Hlo I'm Rupesh I got AIR 3485 in gate CS and AIR...
@Ajay Sasank here is the direct link...
Thank you for the post didi My GATE 2023 & 2024...
I Hope it helps 😊
Today's best post I seen thank you for motivation
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy