-
C Pyramid Program
1
1 2 2
1 2 2 3 3
1 2 2 3 3 4 4
how to create this pyramid using cWhat is the difference between a string and an array?
An array is an array of anything. A string is a specific kind of an array with a well-known convention to determine its length. There are two kinds of programming languages: those in which a string is just an array of characters, and those in which it’s a special type. In C, a string is just an array of characters (type char), with one wrinkle: a C string always ends with a NUL character. The “value”...
Even or Odd number
Write a program to find a number if even or odd with out using conditional operator and if-else?
How to print the over flow of fibonacci series
How to print the over flow of fibonacci series using unsined int upto 100 numbers
Difference between b++ and b=b+1
What is the difference between b++ and b=b+1?
Which one is more used and why?Find Longest Common Substring
Write a Logic/Pseudo Code to find longest common substring from two given strings. i.e. Out of two strings, “I like New York City the most.†And “Who else like New York City as I do?â€, “like New York City†is the longest common substring.
Can a variable be both const and volatile?
Yes. The const modifier means that this code cannot change the value of the variable, but that does not mean that the value cannot be changed by means outside this code. For instance, in the example in FAQ 8, the timer structure was accessed through a volatile const pointer. The function itself did not change the value of the timer, so it was declared const. However, the value was changed by...
Program to print all prime numbers btw 1 to 100
C Program to print all prime numbers btw 1 to 100..pls explain the program: What is if(p)??cpp#include
#include
int main()
{
int num,n,div,p;
printf("Enter any number: ");
scanf("%d", &num);
for(n=2; nWhat is the purpose of main( ) function?
The function main( ) invokes other functions within it.It is the first function to be called when the program starts execution.Ø It is the starting functionØ It returns an int value to the environment that called the programØ Recursive call is allowed for main( ) also.Ø It is a user-defined...
Return Multiple Values at a time from Function
How can we return multiple values at a time from function using call by reference?
Output for following and explanation
j=scanf("%d",&i);
printf("%d",j);Value of x at the Time of Execution
What is the value of x at the time of execution?
int x = 3;
if( x == 2 );
x = 0;
if( x == 3 )
x++;
else x += 2;Variables Storage
Variables should be stored in local blocks. Yes or No?
Ans