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 in C
Apr 7, 2019
647
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 in C
Apr 6, 2019
648
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 in C
Apr 6, 2019
286
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 in C
Apr 6, 2019
446
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 in C
Mar 10, 2019
793
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 in C
Feb 9, 2019
682
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 in C
Jan 26, 2019
351
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 in C
Jan 25, 2019
406
views
programming
1
answer
9
programming
what is the reason…..?for error..
comment edited
in
Programming in C
Jan 22, 2019
300
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 in C
Jan 21, 2019
231
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 in C
Jan 20, 2019
441
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 in C
Jan 19, 2019
442
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 in C
Jan 19, 2019
382
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 in C
Jan 16, 2019
190
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 in C
Jan 14, 2019
813
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 in C
Jan 13, 2019
285
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 in C
Jan 12, 2019
352
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 in C
Jan 12, 2019
7.2k
views
0
answers
19
geeksforgeeks
#include int main() { int i = 1; printf("%d %d %d\n", i++, i++, i); return 0; }
commented
in
Programming in C
Jan 12, 2019
620
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
797
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
2.1k
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
4.4k
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.4k
views
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
(24)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(682)
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.6k
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