Write a program to show the workingof auto variable.
Answers were Sorted based on User's Feedback
Answer / raj
#include<stdio.h>
main()
{
auto int n=0;
{
int n=1'
printf("%d",n);
}
}
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / shrikantauti
main()
{
auto int i,j;
printf("%d%d", i,j);
}
/*
output could look like:
1211 221
*/
| Is This Answer Correct ? | 6 Yes | 3 No |
Is null always defined as 0(zero)?
Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.
difference between malloc and calloc
How to write a program for swapping two strings without using 3rd variable and without using string functions.
What is the correct declaration of main?
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
Are the expressions * ptr ++ and ++ * ptr same?
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............
what is the use of using linked list and array?
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
which is conditional construct a) if statement b) switch statement c) while/for d) goto