equivalent code for the following c program in php
void main()
{
int i=5;printf("%d",i);
}

Answers were Sorted based on User's Feedback



equivalent code for the following c program in php void main() { int i=5;printf("%d",i)..

Answer / rahul kumar

<?php
$i=5;
echo $i;
?>

Is This Answer Correct ?    23 Yes 2 No

equivalent code for the following c program in php void main() { int i=5;printf("%d",i)..

Answer / sathish kumar.r

<?php
$i = 5;
printf("%d",$i);
?>

Is This Answer Correct ?    6 Yes 12 No

Post New Answer

More PHP Interview Questions

Write a query to find the 2nd highest salary of an employee from the employee table?

0 Answers  


What is psr in php?

0 Answers  


Is python better than php?

0 Answers  


What are some new features introduced in php7?

0 Answers  


What types of loops exist in php?

0 Answers  






What is the function used to change the root directory in PHP?

0 Answers  


How to get the http request in php?

0 Answers  


How does csrf token work?

0 Answers  


What are php variables?

0 Answers  


What is difference between Method overriding and overloading in PHP?

0 Answers  


how to get server date and time?

10 Answers  


Where session is stored?

0 Answers  


Categories