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 shiva0
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Questions by shiva0
0
votes
2
answers
1
#arrays
i write this program, during initialization of array i given the size as 11 means the number of elements stored in an array is 11. as we know array is not assigned a value of index 12 and above. but in in the program array a is initialized of index from 0 to 19,my question is how the array is ... i=0;i<20;i++) { a[i]=i+1; } for(i=0;i<20;i++) { printf("%d\n",a[i]); } }
asked
in
Programming
Apr 7, 2019
459
views
programming-in-c
programming
array
memory-management
0
votes
1
answer
2
#Dynamic memory allocation malloc
how to know how much size is allocated while dynamically allocating memory to the pointer variable with malloc. i just write the below code to know the size of ptr2 after dynamically allocating memory. i want the output is 10 but it is displaying as 2 as ... allocation failed"); else{ printf("size of *ptr2 is == %d\n",(sizeof(ptr2)/sizeof(int))); } }
asked
in
Programming
Apr 6, 2019
445
views
programming-in-c
memory-management
1
vote
3
answers
3
#userdefined Data type union in C
What is the output of the program? int main() { union a { int i; char ch[2]; }; union a u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d, %d", u.ch[0], u.ch[1], u.i); return 0; }
asked
in
Programming
Apr 3, 2019
290
views
programming-in-c
datatype
1
vote
1
answer
4
#operator precedence and associativity
#include<stdio.h> int x = 0; int f1() { x = 5; return x; } int f2() { x = 10; return x; } int main() { printf("%d \n", f1()); printf("%d \n", f2()); int p = f1() + f2(); printf("%d ", x); return 0; } what is the output when int p= f1()+f2(); is called and how this is came?????? thank you…!
asked
in
Programming
Mar 10, 2019
486
views
0
votes
0
answers
5
c++,Exception,Base and derived class exception
#include<iostream> using namespace std; class Base {}; class Derived: public Base {}; int main() { Derived d; // some other stuff try { // Some monitored code throw d; } catch(Base b) { cout<<"Caught Base ... base class exception is caught can anyone explain how it is happened internally . and what is class Derived: public Base {};
asked
in
Programming
Feb 9, 2019
579
views
programming-in-c
exception-handling
1
vote
1
answer
6
c programming ,data types
what is the output???? and how it internally converted to int when we are printing with %d format specifier?? when i run in my ide i got 50 as output and i donn’t know how it came? can anyone explain how 50 came #include <stdio.h> int main() { char a = '12'; printf("%d", a); return 0; }
asked
in
Programming
Jan 25, 2019
219
views
programming
programming-in-c
0
votes
1
answer
7
data types
what is the output of the following programming???? and am confusing is unsigned int stores signed integer, and what is ~ ' this symbol ?? and what happened when assigning ~0' to y????? and what will be printed when x,y are printing and how ? can anyone tell me ... printf("same"); else printf("not same"); printf("\n x is %u, y is %u", x, y); return 0; }
asked
in
Programming
Jan 24, 2019
249
views
programming
0
votes
1
answer
8
programming
what is the reason…..?for error..
asked
in
Programming
Jan 22, 2019
189
views
programming-in-c
programming
0
votes
0
answers
9
linkage in C
Can Anyone give a Best example for Internal and External Linkage in c/c++ I know what is internal and external linkage but still am confusing about what is the Translation Unit ,file ,Program. Internal Linkage:The variables which are accessed only inside the file( ... If anyone gives a better example describing each term with full code it will be helpful to me thank you ..!
asked
in
Programming
Jan 21, 2019
180
views
programming-in-c
programming
0
votes
0
answers
10
UGC-NET CS 2016 question
Given i= 0, j = 1, k = – 1 x = 0.5, y = 0.0 What is the output of given ‘C’ expression ? x * 3 & & 3 || j | k explanation please….
asked
in
Programming
Jan 19, 2019
285
views
relational-calculus
0
votes
0
answers
11
c programming
int main() { int a=2,b=2,c=2; printf("%d",a==b==c); return 0; } what is the output??? and what will be done during execution can anyone explain this……...
asked
in
Programming
Jan 19, 2019
285
views
output
programming-in-c
strings
0
votes
1
answer
12
c programming Files
#include<stdio.h> int main() { FILE *fp[2]; if((fp[0]=fp[1]=fopen("test.txt","w"))!=NULL) //test.txt file should be empty during first compiling { fputs("one",fp[0]); fclose(fp[0]); fputs("two",fp[1]); ... is done after fputs("one",fp[0]); and fputs("two",fp[1]); can anyone tell me with explanation...please .
asked
in
Programming
Jan 19, 2019
266
views
programming-in-c
output
programming
0
votes
0
answers
13
programming
what is the use of void in main(void)? my code is: #include <stdio.h> #include <conio.h> int main(int argc,char *argv[]) { int i; if( argc >= 2 ) { printf("The arguments supplied are:\n"); for(i = 1; i < argc; i++) ... main(void) the program should not take any value .. anyone please tell me what is the reason and what is the use of void in the main(void)
asked
in
Programming
Jan 16, 2019
83
views
0
votes
0
answers
14
programming
is *ptr=&a is true in C i found this in can anyone explain what does *ptr = &i; in the above picture
asked
in
Programming
Jan 14, 2019
489
views
programming
output
programming-in-c
0
votes
0
answers
15
programming
#include<stdio.h> #include<string.h> int main() { char fullname[]="abcd"; char firstname[]="xxxxx"; //char lastName[]='Nagula'; printf("enter number\n"); printf("Press 1 for fullname\n"); printf("Press 2 for ... error :invalid initialiser in line char name[]= ( a==1 ? fullname : firstname); how to correct it. thank you..!
asked
in
Programming
Jan 13, 2019
155
views
programming-in-c
programming
output
0
votes
1
answer
16
programming
#include<stdio.h> #define A -B #define B -C #define C 5 int main() { printf("The value of A is %dn", A); return 0; } what is the output?????
asked
in
Programming
Jan 12, 2019
223
views
programming
output
0
votes
0
answers
17
geeksforgeeks
#include int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; }
asked
in
Programming
Jan 11, 2019
470
views
programming-in-c
0
votes
2
answers
18
c program output
#include<stdio.h> main() { char c = 'A'+255; printf("%c", c); }
asked
in
Others
Jul 18, 2018
415
views
programming-in-c
output
explanation
please
0
votes
2
answers
19
C programming
#include <stdio.h> main() { char *p = "Sanfoundry C-Test"; p[0] = 'a'; p[1] = 'b'; printf("%s", p); }
asked
in
Others
Jul 18, 2018
1.4k
views
programming-in-c
pointers
0
votes
2
answers
20
c program output
#include <stdio.h> main() { char *p = 0; *p = 'a'; printf("value in pointer p is %c\n", *p); }
asked
in
Others
Jul 18, 2018
2.5k
views
programming-in-c
output
explanation
please
Page:
1
2
next »
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
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
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
All India GO Classes Mock test
NTA UGC NET JRF December 2022 Apply Online Form 2023
Life happens, just chill and do hardwork
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.8k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
This was very nice blog man!!😂😂
@abhi_3_0_12 bro revise now, Gate is on upcoming...
I want to buy the test series today but I want to...
@mahendrapatel The more you give those (some...
@ChatGPT bhai muze vo test bhi dena tha...