Search
 
SCRIPT & CODE EXAMPLE
 

CPP

What will be the values of variables p, q and i at the end of following loop? int p = 5; int q = 18; for(int i=1;i<5;i++) p++; --q;

int p = 5;
int q = 18;
for(int i=1;i&lt;5;i++)
p++;
--q;
Comment

PREVIOUS NEXT
Code Example
Cpp :: displaying m images one window opencv c++ 
Cpp :: sin trigonometric function 
Cpp :: Chef and IPC Certificates codechef solution in c++ 
Cpp :: get player pawn 
Cpp :: how to display score using SDL in c++ 
Cpp :: flutter websocket auto reconnect 
Cpp :: vprintf 
Cpp :: online c++ graphics compiler 
Cpp :: how to input a file path in c++ 
Cpp :: frc limelight tracking 
Cpp :: return value optimization example 
Cpp :: c++ sort a 2d vector by column 
Cpp :: c++ compile to msi 
Cpp :: c++ struktura kolejki 
Cpp :: opengl triangle example 
Cpp :: c++ how to get maximum value 
Cpp :: how to append two vectors in c++ 
Cpp :: add for input output file in c/c++ 
Cpp :: std::string remove last 
Cpp :: program to check smallest num in three numbers in c++ 
Cpp :: create a bitset of 1024 bits, 
C :: pointer to a structure in c 
C :: c remove last character from a string 
C :: shuffle function in c 
C :: c print size_t 
C :: first program in c 
C :: armstrong number using function in c 
C :: what is strikethrough in markdown 
C :: check prime number or not c 
C :: uuidv4 javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =