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
Recent activity by shiva0
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]); } }
commented
in
Programming
Apr 7, 2019
463
views
programming-in-c
programming
array
memory-management
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))); } }
commented
in
Programming
Apr 6, 2019
448
views
programming-in-c
memory-management
0
answers
3
malloc
queue->array = (int*) malloc(queue->capacity *sizeof(int)); What is queue->capacity * doing here?
commented
in
Programming
Apr 6, 2019
192
views
programming-in-c
memory-management
3
answers
4
#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; }
commented
in
Programming
Apr 6, 2019
292
views
programming-in-c
datatype
1
answer
5
#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
488
views
0
answers
6
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
answer
7
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; }
commented
in
Programming
Jan 26, 2019
220
views
programming
programming-in-c
1
answer
8
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; }
commented
in
Programming
Jan 25, 2019
253
views
programming
1
answer
9
programming
what is the reason…..?for error..
comment edited
in
Programming
Jan 22, 2019
191
views
programming-in-c
programming
0
answers
10
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
181
views
programming-in-c
programming
1
answer
11
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 .
commented
in
Programming
Jan 20, 2019
268
views
programming-in-c
output
programming
0
answers
12
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……...
closed
in
Programming
Jan 19, 2019
286
views
output
programming-in-c
strings
0
answers
13
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
286
views
relational-calculus
0
answers
14
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)
edited
in
Programming
Jan 16, 2019
84
views
0
answers
15
programming
is *ptr=&a is true in C i found this in can anyone explain what does *ptr = &i; in the above picture
commented
in
Programming
Jan 14, 2019
497
views
programming
output
programming-in-c
0
answers
16
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
157
views
programming-in-c
programming
output
1
answer
17
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?????
commented
in
Programming
Jan 12, 2019
228
views
programming
output
1
answer
18
programming doubt
#include<stdio.h> int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; } on running i m getting answer : 2 1 3 why answer cant be 1 2 3
commented
in
Programming
Jan 12, 2019
6.4k
views
0
answers
19
geeksforgeeks
#include int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; }
commented
in
Programming
Jan 12, 2019
471
views
programming-in-c
2
answers
20
c program output
#include<stdio.h> main() { char c = 'A'+255; printf("%c", c); }
commented
in
Others
Jul 20, 2018
420
views
programming-in-c
output
explanation
please
2
answers
21
C programming
#include <stdio.h> main() { char *p = "Sanfoundry C-Test"; p[0] = 'a'; p[1] = 'b'; printf("%s", p); }
commented
in
Others
Jul 19, 2018
1.4k
views
programming-in-c
pointers
2
answers
22
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
0
answers
23
c program
#include<stdio.h> int main() { int i=0; for(printf(" one\n "); i < 3 && printf(" "); i++) { printf("Hi!\n"); } return 0; }
commented
in
Others
Jul 14, 2018
1.1k
views
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
Recruitment of Scientific Officers in the Department of Atomic Energy 2023
GATE CSE 2023 Paper & Analysis - Memory Based
From GATE to Australia
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
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.7k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(843)
Tier 1 Placement Questions
(17)
Job Queries
(75)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
Recommend test series??
pressman pdf/ geeksforgeeks
where to study software engineering for BARC
+1
1200/1000 = 1.2