which operator having lowest precedence??
a.)+ b.)++ c.)= d.)%
Answers were Sorted based on User's Feedback
Answer / cynthia,1st b.sc.,itm
option d)%
as ++ is unary operator with highest precedence,
= is assingnment operator with the next level of precedence
and + is an arithemetic operator with the next level of
prececende.
Is This Answer Correct ? | 1 Yes | 5 No |
What will be the result of the following program? main() { char p[]="String"; int x=0; if(p=="String") { printf("Pass 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } else { printf("Fail 1"); if(p[sizeof(p)-2]=='g') printf("Pass 2"); else printf("Fail 2"); } } a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2 d) Fail 1, Pass 2 e) syntax error during compilation
1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.
write a c program to store and print name,address,roll.no of a student using structures?
How can I do serial ("comm") port I/O?
Why can’t we compare structures?
Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: <must match with the Password, should not display characters when user type> Account Type: <One character long, A or S or G where A for Admin, S for Super Admin, G for Guest> Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.
how to execute with out main in cprogram
What is the difference between void main() and void main (void) give example programme?
Can i use Two or More Main Funtion in any C program.?
how to find out the inorder successor of a node in a tree??
What is the difference between malloc() and calloc()?
What is a pointer in c plus plus?