what is the output of the program??

#include<stdio.h>

main ( )

{

int a=010,sum=0,tracker:

for(tracker=0;tracker<=a;tracker++)

sum+=tracker;

printf(“ %d\n”,sum);

}

what is the difference between a=10 and a=010??

Answer Posted / xyz

near keyword int there is a colon so isnt tat a compling error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is printf a keyword?

762


What is #error and use of it?

681


What is array of pointers to string?

573


What is an auto variable in c?

760


Why do we need a structure?

591






Can a function argument have default value?

676


Explain what are the different data types in c?

761


Explain how do you determine whether to use a stream function or a low-level function?

632


Can true be a variable name in c?

561


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

628


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2657


What is operator promotion?

632


Is there any demerits of using pointer?

634


Is malloc memset faster than calloc?

622


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1986