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
Webpage
Programming in C.
Recursion.
Filter
No answer
No selected answer
No upvoted answer
Previous GATE
Featured
Questions without an upvoted answer in Programming in C
0
votes
0
answers
1
GATE CSE SET-1 2024
My question is that can we use command line arguments without use of main function's parameters argc and *argv?
RahulVerma3
asked
in
Programming in C
Mar 22
by
RahulVerma3
37
views
programming-in-c
programming
0
votes
0
answers
2
GATE 2024 CSE1
I have a question that can we use command line arguments without main function arguments? int main(int argc, char **argv){ }
RahulVerma3
asked
in
Programming in C
Mar 16
by
RahulVerma3
105
views
gatecse2024-set1
programming-in-c
0
votes
0
answers
3
class question self doubt
#include<stdio.h> #include<conio.h> int main(){ int a[][3]={ {4,14,24},{5,15,25},{6,16,26}}; int *p[3]; int **ptr=p; p[0]=a; p[1]=a+1; p[2]=a+2; ++*p; ++p[0]; ++**ptr; ++*p[0]; ++ptr; ++*ptr; --*p[1]; --*ptr; ++ptr; --p[ ... ("\n%d,%d,%d",a[0][2],a[1][1],a[2][0]); printf("\n%d,%d,%d",*p[0],*p[1],*p[2]); } what is the output of above program
Emankashyap
asked
in
Programming in C
Mar 1
by
Emankashyap
122
views
1
vote
0
answers
4
I have purchased the IIIT Hyderabad 2024 test series but i can't find the test series anywhere
Khushbu Chaudhary
asked
in
Programming in C
Feb 25
by
Khushbu Chaudhary
86
views
0
votes
1
answer
5
s.balaguruswami
Find the error of the following IP addresses. If the IP is valid, check its Class and determine whether the address is Unicast or Multicast. i) 237.15.2.1 ii) 256.1.8.9 iii) 114.34.2.8 iv) 255.254.0.1 v) 8.8.8.8
Sheikh Rafi
asked
in
Programming in C
Feb 24
by
Sheikh Rafi
90
views
2
votes
2
answers
6
GATE CSE 2024 | Set 2 | Question: 26
What is the output of the following $\text{C}$ program? #include <stdio.h> int main() { double $a[2]=\{20.0,25.0\},{ }^{*} \mathrm{p},{ }^{*} \mathrm{q}$; $\mathrm{p}=\mathrm{a} ;$ $q=p+1 ;$ printf("%d,%d", (int) $(q-p),($ int $\left.)\left({ }^{*} q-{ }^{*} p\right)\right)$; return $0$ ; } $4,8$ $1,5$ $8,5$ $1,8$
Arjun
asked
in
Programming in C
Feb 16
by
Arjun
2.5k
views
gatecse2024-set2
programming
programming-in-c
3
votes
3
answers
7
GATE CSE 2024 | Set 1 | Question: 8
Consider the following $\mathrm{C}$ program: #include <stdio.h> int main() { int a=6; int b = 0; while (a<10) { a = a / 12+1 ; a += b ;} printf ("%d", a); return 0 ; } Which one of the following ... The program prints $9$ as output The program prints $10$ as output The program gets stuck in an infinite loop The program prints $6$ as output
Arjun
asked
in
Programming in C
Feb 16
by
Arjun
5.5k
views
gatecse2024-set1
programming
programming-in-c
4
votes
1
answer
8
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 43
What will be the output of the following C program? #include <stdio.h> void Mickey(int**, int, int); void Mouse(int, int*); int main() { int a = 2, b = 3, c = 4; int *points = &a; Mickey(&points, b, c); printf("%d", ... x; *p = **points+1; Mouse(z, p); return; } void Mouse(int z, int *p) { *p = *p+1; return; }
GO Classes
asked
in
Programming in C
Feb 5
by
GO Classes
373
views
goclasses2024-mockgate-14
numerical-answers
programming
programming-in-c
functions
2-marks
1
vote
1
answer
9
Array
Does C support fractional Indices? float x = some fraction; Is float a[x] valid declaration?
Mrityudoot
asked
in
Programming in C
Feb 2
by
Mrityudoot
142
views
array
programming-in-c
4
votes
0
answers
10
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 19
What will be the output of the following program? #include <stdio.h> int main() { int a[2][2] = { {1, 2}, {3, 4} }; int (*p)[2][2]; p = &a; printf("%d", (*p)[0][1]); return 0; } $1$ $2$ $3$ $4$
GO Classes
asked
in
Programming in C
Jan 28
by
GO Classes
299
views
goclasses2024-mockgate-13
goclasses
programming
programming-in-c
array-of-pointers
1-mark
2
votes
1
answer
11
GENERAL DOUBT C
void main() { char *p="cprogramming"; } I know the string literal "cprogramming" is stored in read only data segment. But where will the pointer p be stored, in stack or read-write data segment ?
sushmita
asked
in
Programming in C
Apr 15, 2017
by
sushmita
749
views
programming-in-c
1
vote
1
answer
12
C-Output
what is the output of the following program ??
papesh
asked
in
Programming in C
Apr 12, 2017
by
papesh
549
views
0
votes
2
answers
13
How to take inputs for a string ?
How to take inputs for a string ? Example:- #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #define MAX 10000 int main() { char*str; int i,test,l; scanf("%d",&test); for(i=0;i<t;i++) { ... ); l=strlen(str); printf("%s",str); printf(" %d\n",l); free(str); } } this won't work
Adiaspirant
asked
in
Programming in C
Apr 8, 2017
by
Adiaspirant
318
views
programming-in-c
1
vote
1
answer
14
c language
#include <stdio.h> int f1() { printf ("Geeks"); return 1;} int f2() { printf ("Quiz"); return 1;} int main() { int p = f1() + f2(); return 0; } (A) GeeksQuiz (B) QuizGeeks (C) Compiler Dependent (D) Compiler Error plz explain i m ... A bcz + is left associative so f1() first execute then f2() will be executed so answer will be A bt they given C why is it so ?
rajan
asked
in
Programming in C
Apr 4, 2017
by
rajan
911
views
0
votes
0
answers
15
Testbook Test Series: Programming & DS - Programming In C
Rock
asked
in
Programming in C
Mar 25, 2017
by
Rock
362
views
testbook-test-series
programming-in-c
structure
1
vote
1
answer
16
C Programming(interview)
Write an algorithm of the given problem Given a chess board of order NxM and source points (s1,s2) and destination points (d1,d2), Your task to find min number of moves required by the Knight to go to the destination cell.
srestha
asked
in
Programming in C
Mar 23, 2017
by
srestha
1.2k
views
programming-in-c
1
vote
2
answers
17
full binary tree , complete and almost complete binary tree difference
what is the difference between all these types of trees 1)full binary tree 2) complete binary tree 3) almost complete binary tree 4)perfect binary tree 5)strictly binary tree is every full binary tree is of all types of binary trees
Meenakshi Sharma
asked
in
Programming in C
Mar 19, 2017
by
Meenakshi Sharma
4.3k
views
1
vote
1
answer
18
C++ oops
Can someone explain the difference between abstraction and encapsulation with programming example?
Adiaspirant
asked
in
Programming in C
Mar 18, 2017
by
Adiaspirant
805
views
0
votes
1
answer
19
c language
what is the use of extern variable in c ? please explain in detail
Shashank Kumar Mishr
asked
in
Programming in C
Mar 15, 2017
by
Shashank Kumar Mishr
229
views
0
votes
1
answer
20
Program (ritchie)
Write a program to determine the ranges of char, short, int, and long variables, both signed and unsigned, by printing appropriate values from standard headers and by direct computation. Harder if you compute them: determine the ranges of the various floating-point types.
srestha
asked
in
Programming in C
Mar 15, 2017
by
srestha
507
views
programming-in-c
0
votes
3
answers
21
techtud c programming
Ans is C can anybody justify why compilation error
moin
asked
in
Programming in C
Mar 8, 2017
by
moin
748
views
programming-in-c
output
0
votes
1
answer
22
The output of the following program
main() { static int x[] ={1,2,3,4,5,6,7,8}; int i; for(i=2;i<6;++i) x[x[i]]=x[i]; for(i=0;i<8;++i) printf("%d",x[i]); }
neha singh
asked
in
Programming in C
Mar 6, 2017
by
neha singh
1.6k
views
1
vote
1
answer
23
ISRO 2008- ECE GOTO statement
The "go to statement" causes control to go to (a) An operator (b) A label (c) A variable (d) A function
sh!va
asked
in
Programming in C
Mar 2, 2017
by
sh!va
1.6k
views
isro-ece
0
votes
1
answer
24
ISRO 2008-ECE programming
A program having features such as data abstraction, encapsulation and data hiding, polymorphism inheritance is called (a) Structured program (b) Object oriented program (c) Open source program (d) Real time program
sh!va
asked
in
Programming in C
Mar 2, 2017
by
sh!va
378
views
isro-ece
programming
object-oriented-programming
0
votes
1
answer
25
pseudo code result
Sanjay Sharma
asked
in
Programming in C
Mar 1, 2017
by
Sanjay Sharma
319
views
0
votes
0
answers
26
most powerful language paradigm
Sanjay Sharma
asked
in
Programming in C
Mar 1, 2017
by
Sanjay Sharma
242
views
0
votes
2
answers
27
2017_1_42
#include <stdio.h> int total(int v) { static int count=0; while(v){ count+=v&1; v>>=1; } return count; } void main() { // your code goes here static int x=0; int i=5; for(;i>0;i--) { x=x+total(i); } printf("%d\n",x); return 0; }
harveen singh
asked
in
Programming in C
Feb 14, 2017
by
harveen singh
829
views
0
votes
1
answer
28
Gate 2017 Set 1 minimum Comparisons
Consider an array A of size 31 consisting of 0's followed by number of 1's. In order to find the smallest index i such that A[i]=1 minimum number of comparisons required in worst case by optimal algorithm?
yg92
asked
in
Programming in C
Feb 12, 2017
by
yg92
214
views
numerical-answers
algorithms
0
votes
0
answers
29
byron gottfried programming in c (schaum's outline) pageno:302 and 303
i wanted to intialize a 2d array using pointers to pointers and i wrote the following code i know the below code is lot of hardcoding but as i am a beginner to pointers i want to do it this way,please help me ... )+s)); } printf("\n"); } return 0; } https://gateoverflow.in/?qa=blob&qa_blobid=17604332813334679423
abhijeeth
asked
in
Programming in C
Feb 8, 2017
by
abhijeeth
587
views
programming-in-c
array-of-pointers
memory-management
0
votes
0
answers
30
Depth first search
Consider the following graph G. Modified DFS on G applied as follows: • Starting vertex is ‘p’. • Vertex is visited based on alphabetic order. • Vertices are visited in order p, q, r, s, t, v. • It works same as DFS except the visiting order restriction What is the number of back edges during the above DFS traversal on G? a. 2 b. 3 c. 4 d. 5 Explain...how??
shraddha_gami
asked
in
Programming in C
Feb 8, 2017
by
shraddha_gami
1.1k
views
To see more, click for the
full list of questions
or
popular tags
.
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
Engineering Mathematics
Digital Logic
Programming and DS
Programming
Programming in C
Programming in Python
DS
Algorithms
Theory of Computation
Compiler Design
Operating System
Databases
CO and Architecture
Computer Networks
Artificial Intelligence
Machine Learning
Data Mining and Warehousing
Non GATE
Others
Admissions
Exam Queries
Tier 1 Placement Questions
Job Queries
Projects
Unknown Category
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:...