SAlesforce lightning web components tutorial Cognizant Interview Question – Technical Cognizant Interview questions set 1 1) What are different types of modifiers in C? There are 5 modifiers available in C language. They are: short, long, signed, unsigned, and long long 2) What is a static variable? A static local variable retains its value between the function call and the default value is 0. The following function will print 1 2 3 if called thrice. Check out the difference between a static and global variable. 3) a++ or a = a+1, which can be recommended to increment the value by 1 and why? a++, as it is single machine instruction (INC) internally. 4) What is a dangling pointer? A pointer initially holding a valid address, but later the held address is released or freed. Then such a pointer is called as a dangling pointer. To know more about dangling pointer, check this. 5) What are lvalue and rvalue? The expression appearing on the right side of the ...
How to deploy or host angular app in Github pages as a website 1. Create a account in Github 2. Create a repository - get your url ready from the github 3. Go to your project directory in angular js where you run your app locally using ng serve 4. Open package.json file from ide 5. Add the following to the first section of the file "name": "your angular app name", - this will be already there "baseHref": "/your repository folder name", like this /examplerep "version": "0.0.0", "license": "MIT", 6. Come back to project folder 7. install gh pages for github : npm install gh-pages --save-dev 8.makesure that you have cloned the github repository to desktop locally,you can do this from gihub.com also(open in desktop). 9.now back in the project folder run this command to build your project ng build --prod --base--href "your repository folder name" https://yourlogin name.github.io/repostory ...
Comments
Post a Comment