Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
#include<stdio.h> #include<string.h> int main() { char str[20] = "Hello World!"; printf("String before strrev(): %s\n",str)
c
1 Vote
1 Answer
1st Jul 2022, 2:16 AM
Rona Vicente
#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; }
c
pointers
0 Votes
1 Answer
18th Jan 2021, 6:27 PM
yogesh
Нужно помощь с программой
=
a*b/(c+d)-a
f
-2 Votes
2 Answers
19th Jun 2020, 6:22 PM
юля соткина
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scann
switch
0 Votes
3 Answers
20th Sep 2022, 3:22 PM
Senthil
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } }
explain
1 Vote
2 Answers
11th Sep 2016, 4:16 AM
Syed Maqsood
Trying to link my image source but is not working
<img
=
e//images>
src
0 Votes
2 Answers
21st Jun 2024, 11:10 PM
Vicky ice comedy
What is the output of this code? static int Test(out int x, int y=4) { x = 6; return x * y; } static void Main(string[] args
code?
int
is
of
output
static
test(out
the
this
what
0 Votes
2 Answers
19th Sep 2018, 1:39 AM
Lavetta Lewis
Why do we set this.color = c and then ignore it in the main class?
getter
java
setter
0 Votes
3 Answers
22nd Apr 2019, 5:08 PM
Mike Smith
What's the point of "arr.insert(index, value)", when "arr[index] = value" does the same thing?
arrays
insert
methods
ruby
0 Votes
4 Answers
6th Nov 2016, 10:02 PM
Geoff Colman
Can variables be manipulated within a print statement? (Python) Like: x = 3 print(x *=3)
operators
python
-1 Vote
4 Answers
1st May 2020, 11:08 AM
Megha Suresh
What is the difference between these in php
.=
=
$var
and
2 Votes
2 Answers
18th Nov 2020, 9:35 AM
Balogun Soliu
public class Program { public static void main(String[] args) { int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][1]; System.out.println(x); } } why it does not give any garbage value as output?
arrays
java
-1 Vote
4 Answers
9th Nov 2016, 6:21 PM
Sandesh
def addition(): first= int(input('what is your first number')) second = int(input('What is your second number?'))
q
1 Vote
3 Answers
19th Oct 2020, 12:37 PM
Ar Kar Moe
Why does this code only print true when i = 4, 9, 25, or 49?
python
python3
0 Votes
2 Answers
26th Aug 2019, 1:44 AM
Evan
Complete the code for the form. <form> <label for = "_______"> Name : </label> <input type="text" ________="name"> <input __
html#form
1 Vote
5 Answers
27th Aug 2023, 4:17 PM
Souvik Hazra
How to remove the duplicate characters from the following String using Java toIndex()?String str = “gdjennrfvsbsbdbsb”;
chararray
java
0 Votes
5 Answers
9th May 2020, 8:40 AM
Ramya T
Sum = 1 + 12 + 123 + 1234 + 12345 + … + 1234567891011…n how to sum%10007 mod answer
algorithm
formula
-3 Votes
11 Answers
19th Jul 2017, 12:12 PM
Ilyos Yuldoshev
SELECT DISTINCT * FROM customers WHERE city = 'Newyork'; is it possible?? if there are multiple city then show only once.
distinct
sql
where
2 Votes
14 Answers
9th Oct 2016, 6:53 AM
Morshed Islam
How do I allocate memory to the following function pointer: void (*ptr)(int*) = factorial;?
c
2 Votes
1 Answer
24th May 2022, 7:39 PM
attackhelicopter boi
int result =0; for (int i = 0;i<5;i++){ if(i==3){ result+=10; }else{ result+=i; } } system.out.println(result);
array
java
0 Votes
2 Answers
12th Apr 2018, 7:47 PM
Ahsan Designer
I can't understand that $a = count("123","45"); echo $a; . Output: 1. Why?Please explain me more.
count()
php
1 Vote
2 Answers
23rd Jun 2019, 5:49 PM
Sanjar Sobirjonov
var n = 5 ; alert(n-=2) = 3 or alert(n-2)= 3 . When would anyone use ( -=2 ) when ( n-2 ) is straight forward ? 🤔🤔🤔🤔
script
0 Votes
2 Answers
29th Jun 2021, 11:32 AM
Theresco
What do the square brackets mean in the following: word = words[counter]
for
loops
1 Vote
2 Answers
23rd May 2017, 7:09 PM
Devron Tombacco
Please help me complete this program to enable me get an output of y int main() { int x = 9; int y = x % 5; x= ; cout<<x*y ;
c++
1 Vote
4 Answers
27th Sep 2016, 5:16 PM
Ibim
#include <iostream> using namespace std; //Compiler version g++ 6.3.0 int main() { int myVariable = 10; "Cout" << "myvari
print
0 Votes
7 Answers
26th Aug 2020, 11:11 AM
JASHANPREET SINGH
What is the output of this code? var n1; n1 = true; Console.WriteLine(n1);
c#
variables
0 Votes
1 Answer
21st Aug 2018, 10:42 AM
Morapedi Khutwane
TypeError: undefined is not an object (evaluating 'array[sq] = p+r') at Line: 59
array
bug
js
0 Votes
3 Answers
27th Oct 2019, 6:54 PM
Bright Lin
How can we take multiple inputs in java ? Can we do this "Scanner a,b,c = new Scanner(System.in);
how
in
inputs
java
multiple
take
to
1 Vote
5 Answers
27th Aug 2019, 8:12 AM
Zeeshan Ahmad
Can some one help me to understand this PHP question please? $result = 0; and $i = 0; how can their addition be 10???
for
function-arguments
functions
php
0 Votes
1 Answer
4th Nov 2016, 3:56 PM
Haikal Jama Shaywal
Which the value of the target attribute make the link open a new tab or new window
_blank
=
=
=
current
new
pag
page_parent
page_self
parent
target
-1 Vote
1 Answer
6th Aug 2022, 2:32 PM
Vivek
a program to convert temperature in degrees Fahrenheit to degrees Celsius. The equation is: Celsius = 5.0/9.0(Fahrenheit –32.0)
c++
main
0 Votes
6 Answers
28th Dec 2020, 10:57 PM
Izzat Idham
why do you convert to a double a string value = "77" instead of an int?
c#
input
type-conversion
0 Votes
7 Answers
15th Aug 2016, 4:03 AM
Lezly Rodríguez D
var x = 0; for (; x <= ; x += ) { document.write(x); }
#javascript
0 Votes
3 Answers
3rd Nov 2020, 12:19 PM
SANDHIYA S
Python - Why is the outer bracket not printed in a = ([{}]) ?
brackets
python
0 Votes
1 Answer
29th Oct 2020, 8:27 PM
Solus
how do i make my textarea transparent
"text"/>
<input
=
type
1 Vote
2 Answers
10th May 2020, 1:25 PM
Posi
Int x[2][3] = {{1,2,3},{4,5,6}}; I want to print all the numbers included in 2D array how?
arrays
c++
1 Vote
5 Answers
9th Dec 2018, 2:16 PM
Sm Developer
a = [i for i in range(8)] print(a) for i in a: a.remove(i) print(i) print (sum(a))
python
python3
1 Vote
3 Answers
17th Jun 2019, 7:28 AM
Praveen E
In reverse a string code in java, what is the meaning of this line? String rev = ""; Please explain.
java
2 Votes
5 Answers
23rd Mar 2021, 12:11 PM
RAGUL
find all possible roots of an equation of the form ax + by + cz = d
python3
0 Votes
8 Answers
31st Oct 2017, 4:29 PM
Daniyar
What is the target from using increment & decrement processes?
)
++b;document.write(
=
=
0;
a
a
b=10;var
vara
0 Votes
3 Answers
30th May 2020, 9:59 AM
Sohaila Mostafa
num = int(input()) def fibonacci(n): if n==1: return 0 elif n==2: return 1 else: return fibonacci (n-1) + fibonacci (
exsercise
fibonacci
python
series
1 Vote
7 Answers
23rd Dec 2020, 1:07 PM
ARNAV SINGH
def add_numbers(x, y): total = x + y return total print("This won't be printed") print(add_numbers(4, 5))
functions
0 Votes
3 Answers
31st Jul 2019, 4:01 AM
Dhyey Badheka
What os the use of i = i+1 in this code?
python3
0 Votes
2 Answers
13th Dec 2017, 5:26 PM
Arjun Mahanty
x = 1 while x < 10: if x%2 == 0: print(str(x) + " is even") else: print(str(x) + " is odd") elif:
help
3 Votes
7 Answers
12th Aug 2020, 2:27 AM
Hacker Tamil Tamila
#include <stdio.h> int main() { int x = 5; if (x<1); {printf("Hello");} }
help
0 Votes
2 Answers
15th Dec 2019, 2:33 PM
Avantika Nagrale
What is the output of this code? for (var i = 5; i <9; i++) {document.write (9-i);}
code
coding
developer
javascript
js
variables
6 Votes
2 Answers
12th Aug 2017, 12:24 PM
Tahir Usman
int x = 12 ; int y= ++x ; cout << x ; . In this what is the output
answer
0 Votes
10 Answers
20th Jun 2018, 4:29 PM
Superman Batman
What is the different between front end ,back-end and full stack developer???
??
=
css
html
js
2 Votes
5 Answers
21st Sep 2018, 4:04 PM
Daniel D (school)
How can I remove new lines and tab space from this string at once? s = 'This\nis\PYthon\n\tlanguage'
escape_sequence
newline
python
split
strings
tab
2 Votes
6 Answers
13th Sep 2017, 9:32 AM
SobiX
what does this lambda do in python sort. Assume a=[3,2,0,1] b=[1,0,3,2] b.sort(key = lambda x:a[x]) print(b) #res=2310
python
sort
1 Vote
4 Answers
17th May 2018, 3:04 AM
Deepak Jayaprakash
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
24
25
26
...
38
Next >
Hot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
1 Votes
I need advice
0 Votes
Html 5 document question
1 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
Paint costs
1 Votes
Why this code fails even without data race
0 Votes
Learning Python - Question
1 Votes