Ask Questions & Get Answers at ibibo sawaal
     Powered by Bixee Crawl
Results 1 - 15 of about 190 sawaal for "const"
Sort by: Recency | Relevancy

how can we declare constant variables in c?

It is simple in concept, variables declared with const added become constants and cannot be altered by the program, but, in the way is has to be used to bodge in a substitute for one of the missing features of C, it gets horridly complicated and frustratingly restrictive.The simplest use is to declare a named constant. To do this, one declares a constant as if it was a variable but add const before it

Posted in Computers & Technology by monal rajput at 12:36 AM on September 05, 2008

Write a Visual Basic Code seatment for finding the LCM and GCD of two inputed numbers

if Rn = Qn x Rn-1 Rn1 then Dn1 = Dn . Q , where Qn 1 Q = 1 0 Qo being the identity matrix For performance reasons the matrix D is kept in variables d1 through d4Const computeCaption As String = "&Compute GCDa,b," & vbCr & "LCMa,b and" & vbCr & "Bezout relationship"Const newValCaption = "Enter &new" & vbCr & "values" the numbers

Posted in Computers & Technology by Rakesh Singh at 5:30 PM on May 31, 2008

Write a VBCode seatment will count a numberof characters of a given string length of the string change that sting into uppercase and then reverse the string.

if Rn = Qn x Rn-1 Rn1 then Dn1 = Dn . Q , where Qn 1 Q = 1 0 Qo being the identity matrix For performance reasons the matrix D is kept in variables d1 through d4Const computeCaption As String = "&Compute GCDa,b," & vbCr & "LCMa,b and" & vbCr & "Bezout relationship"Const newValCaption = "Enter &new" & vbCr & "values" the numbers

Posted in Computers & Technology by Rakesh Singh at 5:33 PM on May 31, 2008

How do I enforce const correctness in C?

You cant - at least not in the same way you do in C. C actually, the CLI has no real concept of const correctness, For example, theres no way to specify that a method should not modify an argument will be routed to the derived implementation....No way! Const Constructor correctness cannot be enforced in C. Because, the Common Language Infrastructure CLI does not define constructor correctness. For instance

Posted in Computers & Technology by Nidhi Singh at 3:16 PM on August 13, 2008

How do I enforce const correctness in C?

Hi,You cant - at least not in the same way you do in C. C actually, the CLI has no real concept of const correctness, For example, theres no way to specify that a method should not modify an argument....hi radhe,You cant - at least not in the same way you do in C. C actually, the CLI has no real concept of const correctness, For example, theres no way to specify that a method should not modify an argument

Posted in Computers & Technology by Radhe Radhe at 8:32 PM on May 30, 2008

Whats the difference between const char p, char const p, and char const p?

The first two are interchangeable; they declare a pointer to a constant character you cant change any pointed-to characters. char const p declares a constant pointer to a variable character i.e. you

Posted in Kanpur by keshav at 8:33 PM on October 08, 2008

What does it mean for a function parameter to be const? What do the two consts inint fconst const pmean?

Inint fconst const pthe first of the two consts is perfectly appropriate and quite useful; many functions declare parameters which are pointers to const data, and doing so documents and tends to enforce the functions promise that it wont modify the pointed-to data in the caller. The second const, on the other hand, is almost useless; all it says is that the function wont alter its own copy

Posted in Kanpur by keshav at 8:32 PM on October 08, 2008

How do I implement an incremental search in list/dir/combo/file boxes?

Tarr for helping debug the code. In a .BAS file, add the following: searchme is a global variable that will keep track of what the user has typed so far. Global searcme Global Const WMUSER = &H400 Global Const LBSELECTSTRING = WMUSER 13 Global Const LBFINDSTRING = WMUSER 16 Declare Function SendMessageByString& Lib "User32" ALIAS "SendMessage" ByVal hWnd, ByVal w

Posted in Computers & Technology by Asha Ram at 4:06 PM on September 19, 2008

Ive got the declarationstypedef char charp;const charp p;Why is p turning out const, instead of the characters pointed to?

typedef substitutions are not purely textual. This is one of the advantages of typedefs; see question 1.13. In the declarationconst charp p;p is const for the same reason that const int i declares i as const. The typedefed declaration of p does not look inside the typedef to see that there is a pointer involved.

Posted in Kanpur by keshav at 8:33 PM on October 08, 2008

Whats the difference between "const char p" and "char const p"?

"const char p" which can also be written "char const p"declares a pointer to a constant character you cant changethe character; "char const p" declares a constant

Posted in Computers & Technology by Surand at 7:31 AM on February 03, 2008
Tags bca

I dont understand why I cant use const values in initializers and rray dimensions, as in const int n = 5; int a[n

];...The const qualifier really means "read-only"; an object soqualified is a run-time object which cannot normally beassigned to. The value of a const-qualified object is thereforenot a

Posted in Computers & Technology by Surand at 7:30 AM on February 03, 2008
Tags bca

How do I declare a constant to make it available to all procedures in all forms?

module, place the words Public Const VB4, VB5, VB6 or Global Const VB2, VB3 before the variable assignment. source:vbnet.mvps.org/code/faq /faqqa.htm...In VB, You use the Const statement to declare a be declared as Public access specifier if you like to make it available to all the procedures in all the forms. Write a declaration that includes an access specifier, the Const keyword, and an expression

Posted in Computers & Technology by Asha Ram at 10:50 PM on September 19, 2008

Give example of abstraction in C?

, the input and output of an object in the Rational class whose specification is given below:class Rational public: Rationalint numerator, int denominator; Rational operatorconst Rational& r const; Rational operator-const Rational& r const; Rational operatorconst Rational& r const; Rational operator/const Rational& r const; Rational& operator=const Rational& r; private: int

Posted in Computers & Technology by bwd at 4:06 AM on September 06, 2008

How do you change the icon and otherwise manipulate the DOS box?

this method changes the icon of ALL the active DOS boxes Code follows: x---------------------------------- ------------------------------- ----x Option Explicit Global Const SWPNOSIZE = 1 Global Const SWPNOMOVE = 2 Global Const SWPNOACTIVATE = &H10 Global Const SWPSHOWWINDOW = &H40 Global Const SWPHIDEWINDOW = &H80 Global Const SWPFLAGS = SWPNOMOVE Or SWPNOSIZE Or SWPNOACTIVATE Global Const

Posted in Computers & Technology by Raj at 8:09 AM on February 05, 2008
Refine By Date
sawaal signature
sawaal free visiting card