write a program whose output will be-
1
12
123
1234
Answer Posted / riyadh ahmed
//Answer by Riyadh
#include<stdio.h>
int main ()
{
int i,j;
for (i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
return 0;
}
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Is Exception handling possible in c language?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What does stand for?
What is %d called in c?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is wrong in this statement? scanf(ā%dā,whatnumber);
Explain heap and queue.
Can you mix old-style and new-style function syntax?
Write a Program to find whether the given number or string is palindrome.
List the difference between a "copy constructor" and a "assignment operator"?
What does the format %10.2 mean when included in a printf statement?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain About fork()?